Proper false statement handling
This commit is contained in:
parent
b41714eec5
commit
3230021f7f
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user