Update base.php

This commit is contained in:
Namhyeon Go 2020-02-21 14:19:42 +09:00 committed by GitHub
parent b0a538459d
commit a604fa9a8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -321,14 +321,6 @@ if(!is_fn("get_key_in_array")) {
}
}
if(!is_fn("remove_item_in_array")) {
function remove_item_in_array($key, $arr) {
if(array_key_exists($key, $arr)) {
unset($arr[$key]);
}
}
}
// error handler (set error)
if(!is_fn("set_error")) {
function set_error($msg, $code="ERROR") {