MINOR: Replaced is_a with instanceof to fix bugs with the changed is_a behaviour in PHP 5.3.7.

This commit is contained in:
ajshort 2011-12-26 18:31:32 +11:00
parent 565e2ab318
commit 6aa90e6288

View File

@ -110,7 +110,7 @@ class CheckboxSetField extends OptionsetField {
}
if($source) foreach($source as $index => $item) {
if(is_a($item, 'DataObject')) {
if($item instanceof DataObject) {
$key = $item->ID;
$value = $item->Title;
} else {