Permalink
Browse files

DibiResult: row-class can be disabled and fetch() returns array

  • Loading branch information...
1 parent 3cde2c7 commit 5b68657842001851f993699293b170d49d1d0ba0 @dg committed Jan 19, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 dibi/libs/DibiResult.php
View
@@ -216,7 +216,10 @@ public function getRowClass()
}
$this->fetched = TRUE;
$this->normalize($row);
- return new $this->rowClass($row);
+ if ($this->rowClass) {
+ $row = new $this->rowClass($row);
+ }
+ return $row;
}

0 comments on commit 5b68657

Please sign in to comment.