From c697f09f324c725816c5544eb562e0818edc8cfa Mon Sep 17 00:00:00 2001 From: zYne Date: Tue, 5 Jun 2007 23:35:11 +0000 Subject: [PATCH] --- lib/Doctrine/Hydrate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Hydrate.php b/lib/Doctrine/Hydrate.php index d8372e2d1..4928240d3 100644 --- a/lib/Doctrine/Hydrate.php +++ b/lib/Doctrine/Hydrate.php @@ -796,8 +796,8 @@ class Doctrine_Hydrate implements Serializable $array = $driver->getElementCollection($componentName); $identifiable = array(); - if ($stmt === false) { - return $array; + if ($stmt === false || $stmt === 0) { + return $array; } while ($data = $stmt->fetch(PDO::FETCH_ASSOC)) {