calling unserialize on array in util/service_class
This commit is contained in:
parent
97009a2748
commit
136b2ae37f
@ -93,7 +93,12 @@ if($argc == 1) {
|
||||
if(is_array(App::$config['service_class']) && App::$config['service_class']) {
|
||||
foreach(App::$config['service_class'] as $class=>$props) {
|
||||
echo "$class:\n";
|
||||
$d = unserialize($props);
|
||||
|
||||
$d = ((! is_array($props)) && (preg_match('|^a:[0-9]+:{.*}$|s', $props))
|
||||
? unserialize($props)
|
||||
: $props
|
||||
);
|
||||
|
||||
if(is_array($d) && $d) {
|
||||
foreach($d as $k => $v) {
|
||||
echo "\t$k = $v\n";
|
||||
|
Reference in New Issue
Block a user