Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 6aa90e6288d19982943e8c83b353a48df59573ef 1 parent 565e2ab
@ajshort ajshort authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  forms/CheckboxSetField.php
View
2  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 {
Please sign in to comment.
Something went wrong with that request. Please try again.