mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
565e2ab318
commit
6aa90e6288
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user