Permalink
Browse files

Merge pull request #176 from mike-php-net/hotfixes

fix notice
  • Loading branch information...
2 parents bf68ede + 6dc8859 commit 5c609edf9df3258af4ac178ff65a449c6e52e9e3 Gabor de Mooij committed Jul 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 RedBean/OODB.php
View
@@ -646,7 +646,7 @@ public function load($type,$id) {
if ($this->isFrozen) throw $e; //only throw if frozen;
}
}
- if (!$rows) return $bean; // $this->dispense($type); -- no need...
+ if (empty($rows)) return $bean; // $this->dispense($type); -- no need...
$row = array_pop($rows);
}
foreach($row as $p=>$v) {

0 comments on commit 5c609ed

Please sign in to comment.