Permalink
Browse files

MINOR: Replaced is_a with instanceof to fix bugs with the changed is_…

…a behaviour in PHP 5.3.7.
  • Loading branch information...
1 parent 565e2ab commit 6aa90e6288d19982943e8c83b353a48df59573ef @ajshort ajshort committed Dec 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 forms/CheckboxSetField.php
@@ -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 {

0 comments on commit 6aa90e6

Please sign in to comment.