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 16:26:57 +0100
commitc850a61a896cfd42cb731f0e159e39e9ffee3236 (patch)
tree41a73beb274c991775b4b8da412daf0416f59857 /Zotlabs
parent3a2fdec241b84bd4ae559565876c6869e1c067fe (diff)
downloadvolse-hubzilla-c850a61a896cfd42cb731f0e159e39e9ffee3236.tar.gz
volse-hubzilla-c850a61a896cfd42cb731f0e159e39e9ffee3236.tar.bz2
volse-hubzilla-c850a61a896cfd42cb731f0e159e39e9ffee3236.zip
check if file exists
(cherry picked from commit 52bd27a0280c736e563ccc67a9307cd75bd14d3f)
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;