From a651d730f2329429cc08727ca95cefae0188e0a1 Mon Sep 17 00:00:00 2001 From: Justin Martin Date: Thu, 1 Nov 2012 16:57:07 -0700 Subject: [PATCH] BUG: DataObject::__construct() now accepts stdClass for $record --- model/DataObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/DataObject.php b/model/DataObject.php index ff3e9f122..aada5807a 100644 --- a/model/DataObject.php +++ b/model/DataObject.php @@ -323,7 +323,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity ); } - if(!is_array($record)) { + if(!is_array($record) && !is_a($record, "stdClass")) { if(is_object($record)) $passed = "an object of type '$record->class'"; else $passed = "The value '$record'";