Use array_shift, since the key may not allways be 0
This commit is contained in:
parent
2c9e480037
commit
1c5162eed2
@ -884,7 +884,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
|
|||||||
}
|
}
|
||||||
case Doctrine::FETCH_ARRAY:
|
case Doctrine::FETCH_ARRAY:
|
||||||
if ( ! empty($records[0])) {
|
if ( ! empty($records[0])) {
|
||||||
return $records[0];
|
return array_shift($records);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user