From 3230021f7f32399c7b1fba7831c4f1eeba88d0f2 Mon Sep 17 00:00:00 2001 From: zYne Date: Tue, 5 Jun 2007 23:19:12 +0000 Subject: [PATCH] Proper false statement handling --- lib/Doctrine/Hydrate.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Doctrine/Hydrate.php b/lib/Doctrine/Hydrate.php index a83097e04..d8372e2d1 100644 --- a/lib/Doctrine/Hydrate.php +++ b/lib/Doctrine/Hydrate.php @@ -796,6 +796,10 @@ class Doctrine_Hydrate implements Serializable $array = $driver->getElementCollection($componentName); $identifiable = array(); + if ($stmt === false) { + return $array; + } + while ($data = $stmt->fetch(PDO::FETCH_ASSOC)) { $parse = true;