This commit is contained in:
parent
3230021f7f
commit
c697f09f32
1 changed files with 2 additions and 2 deletions
|
@ -796,8 +796,8 @@ class Doctrine_Hydrate implements Serializable
|
||||||
$array = $driver->getElementCollection($componentName);
|
$array = $driver->getElementCollection($componentName);
|
||||||
$identifiable = array();
|
$identifiable = array();
|
||||||
|
|
||||||
if ($stmt === false) {
|
if ($stmt === false || $stmt === 0) {
|
||||||
return $array;
|
return $array;
|
||||||
}
|
}
|
||||||
|
|
||||||
while ($data = $stmt->fetch(PDO::FETCH_ASSOC)) {
|
while ($data = $stmt->fetch(PDO::FETCH_ASSOC)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue