Update base.php

This commit is contained in:
Namhyeon Go 2018-04-13 17:02:49 +09:00 committed by GitHub
parent 7e1c1f76ca
commit 56e7c5c0a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,6 +149,13 @@ if(!function_exists("get_value_in_array")) {
}
}
if(!function_exists("get_value_in_object")) {
function get_value_in_object($name, $obj, $default="") {
$output = $obj->$name;
return $output;
}
}
$scope = array();
set_scope("loaded", array(