Update base.php

This commit is contained in:
Namhyeon Go 2019-02-26 11:22:05 +09:00 committed by GitHub
parent b9f0fb1368
commit 78d7ea32a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@
* @brief Base module
*/
// check function
// check invaild function (mixed)
if(!function_exists("check_invaild_function")) {
function check_invaild_function($fn) {
$status = -1;
@ -28,6 +28,7 @@ if(!function_exists("check_invaild_function")) {
return $status;
}
// check vaild function (bool)
if(!function_exists("check_vaild_function")) {
function check_vaild_function($fn) {
return (check_invaild_function($fn) == -1);