fix notice error
This commit is contained in:
@@ -239,8 +239,10 @@ class Configurations // extends Configuration
|
|||||||
$row = $oCfg->toArray(BasePeer::TYPE_FIELDNAME);
|
$row = $oCfg->toArray(BasePeer::TYPE_FIELDNAME);
|
||||||
$result = unserialize($row['CFG_VALUE']);
|
$result = unserialize($row['CFG_VALUE']);
|
||||||
if ( is_array($result) && sizeof($result)==1 ) {
|
if ( is_array($result) && sizeof($result)==1 ) {
|
||||||
return $result[0];
|
$arrayKeys = Array_keys( $result );
|
||||||
} else {
|
return $result[ $arrayKeys[0]];
|
||||||
|
}
|
||||||
|
else {
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user