X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=file_run.php;h=295900cbd530c65867279983ba9182f0ae4a991b;hb=e09ce518fa4526e8832d81e7693f30991abb0a48;hp=e17779774d51404e1aa2ab2d9e32c4946618970b;hpb=8abf94f3526d4c1a7fa846b72a0ce64e0d2d03db;p=wfpl.git diff --git a/file_run.php b/file_run.php index e177797..295900c 100644 --- a/file_run.php +++ b/file_run.php @@ -1,22 +1,19 @@ -. # This function makes it easier to put everything in functions like you should. @@ -40,7 +37,9 @@ function file_run($filename) { require_once($filename); $func = basename($filename, '.php') . '_main'; - return $func(); + if(function_exists($func)) { + return $func(); + } } ?>