Skip to content

Commit

Permalink
MINOR: Replaced is_a with instanceof to fix bugs with the changed is_…
Browse files Browse the repository at this point in the history
…a behaviour in PHP 5.3.7.
  • Loading branch information
ajshort committed Dec 26, 2011
1 parent 565e2ab commit 6aa90e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forms/CheckboxSetField.php
Expand Up @@ -110,7 +110,7 @@ function Field() {
}

if($source) foreach($source as $index => $item) {
if(is_a($item, 'DataObject')) {
if($item instanceof DataObject) {
$key = $item->ID;
$value = $item->Title;
} else {
Expand Down

0 comments on commit 6aa90e6

Please sign in to comment.