Proper false statement handling
This commit is contained in:
parent
b41714eec5
commit
3230021f7f
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue