Anonymous functions are incompatible with PHP 5.2

This commit is contained in:
Marc Delisle 2013-01-26 06:44:36 -05:00
parent 4e565265f7
commit c3f2796544

View File

@ -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);
}
}
?>
?>