aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-11-13 13:40:40 +0000
committerMario <mario@mariovavti.com>2019-11-13 13:40:40 +0000
commit52bd27a0280c736e563ccc67a9307cd75bd14d3f (patch)
tree1616fe4b33fa88d77b4a146f67099f6c3d3ea758 /Zotlabs
parente5e16da8cba85d347351f6d3f243fa7c5fee4c2f (diff)
downloadvolse-hubzilla-52bd27a0280c736e563ccc67a9307cd75bd14d3f.tar.gz
volse-hubzilla-52bd27a0280c736e563ccc67a9307cd75bd14d3f.tar.bz2
volse-hubzilla-52bd27a0280c736e563ccc67a9307cd75bd14d3f.zip
check if file exists
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Web/Router.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Web/Router.php b/Zotlabs/Web/Router.php
index c4db0ef3e..96bf131b8 100644
--- a/Zotlabs/Web/Router.php
+++ b/Zotlabs/Web/Router.php
@@ -56,7 +56,7 @@ class Router {
$routes = Route::get();
if($routes) {
foreach($routes as $route) {
- if(is_array($route) && strtolower($route[1]) === $module) {
+ if(is_array($route) && file_exists($route[0]) && strtolower($route[1]) === $module) {
include_once($route[0]);
if(class_exists($modname)) {
$this->controller = new $modname;