X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=file_run.php;h=d69b5b6a0c2264e5abcc180e40752ed582524216;hb=85bb9b0d8edc94ba469ee4c225407b5d1a1ef993;hp=e17779774d51404e1aa2ab2d9e32c4946618970b;hpb=73490300ca9dea6fc3c6d3a474ab49796fd58438;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(); + } } ?>