Anonymous functions are incompatible with PHP 5.2
This commit is contained in:
parent
4e565265f7
commit
c3f2796544
@ -59,9 +59,11 @@ abstract class OptionsPropertyGroup extends OptionsPropertyItem
|
||||
$this->_properties = array_udiff(
|
||||
$this->getProperties(),
|
||||
array($property),
|
||||
function ($a, $b) {
|
||||
return ($a === $b ) ? 0 : 1;
|
||||
}
|
||||
// for PHP 5.2 compability
|
||||
create_function(
|
||||
'$a, $b',
|
||||
'return ($a === $b ) ? 0 : 1'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@ -99,4 +101,4 @@ abstract class OptionsPropertyGroup extends OptionsPropertyItem
|
||||
return count($this->_properties);
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user