From c3f2796544bf027ac85577cd18715b0c7af7de94 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 26 Jan 2013 06:44:36 -0500 Subject: [PATCH] Anonymous functions are incompatible with PHP 5.2 --- .../properties/options/OptionsPropertyGroup.class.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 +?>