X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=file_run.php;h=d69b5b6a0c2264e5abcc180e40752ed582524216;hb=9a2257958f77e293a6f49d741405521f02855896;hp=e17779774d51404e1aa2ab2d9e32c4946618970b;hpb=8abf94f3526d4c1a7fa846b72a0ce64e0d2d03db;p=wfpl.git diff --git a/file_run.php b/file_run.php index e177797..d69b5b6 100644 --- a/file_run.php +++ b/file_run.php @@ -40,7 +40,9 @@ function file_run($filename) { require_once($filename); $func = basename($filename, '.php') . '_main'; - return $func(); + if(function_exists($func)) { + return $func(); + } } ?>