From 9460ff9e2cac127a5b54b7b990eb12188037cf84 Mon Sep 17 00:00:00 2001 From: runa Date: Tue, 24 Apr 2007 17:33:10 +0000 Subject: [PATCH] use the connections array for key() --- lib/Doctrine/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Manager.php b/lib/Doctrine/Manager.php index e2b80ec4e..8066375d1 100644 --- a/lib/Doctrine/Manager.php +++ b/lib/Doctrine/Manager.php @@ -352,7 +352,7 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera if ($key !== false) { unset($this->connections[$key]); } - $this->currIndex = key($this->connections[$key]); + $this->currIndex = key($this->connections); unset($connection); }