Browse Source

check if file exists

(cherry picked from commit 52bd27a028)
master
Mario 8 months ago
parent
commit
c850a61a89
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Zotlabs/Web/Router.php

+ 1
- 1
Zotlabs/Web/Router.php View File

@@ -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;


Loading…
Cancel
Save