PMCORE-3853 Using array_key_exists() on objects is deprecated. Instead either isset() or property_exists() should be used.
This commit is contained in:
@@ -210,7 +210,7 @@ class PropelTable
|
||||
// Config attributes from XMLFORM file
|
||||
$myAttributes = get_class_vars(get_class($this));
|
||||
foreach ($this->xmlForm->xmlform->tree->attribute as $atrib => $value) {
|
||||
if (array_key_exists($atrib, $myAttributes)) {
|
||||
if (is_array($myAttributes) && array_key_exists($atrib, $myAttributes)) {
|
||||
eval('settype($value, gettype($this->' . $atrib . '));');
|
||||
if ($value !== '') {
|
||||
eval('$this->' . $atrib . '=$value;');
|
||||
|
||||
Reference in New Issue
Block a user