Commit 1c5162ee authored by jackbravo's avatar jackbravo

Use array_shift, since the key may not allways be 0

parent 2c9e4800
......@@ -884,7 +884,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
}
case Doctrine::FETCH_ARRAY:
if ( ! empty($records[0])) {
return $records[0];
return array_shift($records);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment