diff --git a/libraries/properties/options/OptionsPropertyGroup.class.php b/libraries/properties/options/OptionsPropertyGroup.class.php index 3a4a0c9f91..ebff9b321b 100644 --- a/libraries/properties/options/OptionsPropertyGroup.class.php +++ b/libraries/properties/options/OptionsPropertyGroup.class.php @@ -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); } } -?> \ No newline at end of file +?>