From fb869857a59e11272c00461a77482429d9ae640c Mon Sep 17 00:00:00 2001 From: golodnyi Date: Thu, 25 Jan 2018 12:46:39 +0700 Subject: [PATCH] check file exist --- src/Klein/Klein.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }