Update base.php
This commit is contained in:
parent
2223c25245
commit
cf557f2101
|
@ -226,9 +226,8 @@ if(!function_exists("check_function_exists")) {
|
||||||
|
|
||||||
if(!function_exists("get_property_value")) {
|
if(!function_exists("get_property_value")) {
|
||||||
function get_property_value($prop, $obj, $ac=false) {
|
function get_property_value($prop, $obj, $ac=false) {
|
||||||
$result = null;
|
$result = false;
|
||||||
|
if(is_object($obj) && property_exists($obj, $prop)) {
|
||||||
if(property_exists($obj, $prop)) {
|
|
||||||
if($ac) {
|
if($ac) {
|
||||||
$reflection = new ReflectionClass($obj);
|
$reflection = new ReflectionClass($obj);
|
||||||
$property = $reflection->getProperty($prop);
|
$property = $reflection->getProperty($prop);
|
||||||
|
@ -238,11 +237,11 @@ if(!function_exists("get_property_value")) {
|
||||||
$result = $obj->{$prop};
|
$result = $obj->{$prop};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$scope = array();
|
$scope = array();
|
||||||
|
|
||||||
set_scope("loaded", array(
|
set_scope("loaded", array(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user