Display warning if file included by hook does not exist

This commit is contained in:
slawkens 2023-02-02 20:51:55 +01:00
parent 3c77c54c8e
commit 979532d3df

View File

@ -74,9 +74,7 @@ class Hook
}*/
global $db, $config, $template_path, $ots, $content, $twig;
if(file_exists(BASE . $this->_file)) {
$ret = require BASE . $this->_file;
}
$ret = include BASE . $this->_file;
return !isset($ret) || $ret == 1 || $ret;
}