Commit 3230021f authored by zYne's avatar zYne

Proper false statement handling

parent b41714ee
...@@ -796,6 +796,10 @@ class Doctrine_Hydrate implements Serializable ...@@ -796,6 +796,10 @@ class Doctrine_Hydrate implements Serializable
$array = $driver->getElementCollection($componentName); $array = $driver->getElementCollection($componentName);
$identifiable = array(); $identifiable = array();
if ($stmt === false) {
return $array;
}
while ($data = $stmt->fetch(PDO::FETCH_ASSOC)) { while ($data = $stmt->fetch(PDO::FETCH_ASSOC)) {
$parse = true; $parse = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment