1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Use array_shift, since the key may not allways be 0

This commit is contained in:
jackbravo 2007-09-03 22:29:30 +00:00
parent 2c9e480037
commit 1c5162eed2

View File

@ -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);
} }
} }
} }