Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUG: DataObject::__construct() now accepts stdClass for $record

  • Loading branch information...
commit a651d730f2329429cc08727ca95cefae0188e0a1 1 parent 43cd54b
@TheFrozenFire TheFrozenFire authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  model/DataObject.php
View
2  model/DataObject.php
@@ -323,7 +323,7 @@ public function __construct($record = null, $isSingleton = false, $model = null)
);
}
- 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'";
Please sign in to comment.
Something went wrong with that request. Please try again.