diff --git a/src/Klein/Klein.php b/src/Klein/Klein.php index 587379fd..906bcb2c 100644 --- a/src/Klein/Klein.php +++ b/src/Klein/Klein.php @@ -392,7 +392,7 @@ public function with($namespace, $routes) } else { call_user_func($routes, $this); } - } else { + } elseif (file_exists($routes)) { require $routes; }