Update base.php

This commit is contained in:
Namhyeon Go 2019-05-23 16:38:26 +09:00 committed by GitHub
parent b2722ec8fd
commit eb83665028
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -284,6 +284,12 @@ if(!check_function_exists("check_array_length")) {
}
}
if(!check_function_exists("check_is_empty")) {
function check_is_empty($v, $d=true) {
return (empty($v) ? $d : false);
}
}
// error handler
if(!check_function_exists("set_error")) {
function set_error($msg, $code="ERROR") {