diff options
author | thomascube <thomas@roundcube.net> | 2010-03-31 15:27:55 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2010-03-31 15:27:55 +0000 |
commit | 64d855c9b161bac59fef77706d651536bf68c2be (patch) | |
tree | d37c081cd381caaf28217c62f716a9da668074b9 | |
parent | c0297f4172da47a20350d597176ecafee47c97bb (diff) |
List of tables mustn't be static (wtf?)
-rw-r--r-- | program/include/rcube_mdb2.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/program/include/rcube_mdb2.php b/program/include/rcube_mdb2.php index 10aaabe4a..2f4ea26a4 100644 --- a/program/include/rcube_mdb2.php +++ b/program/include/rcube_mdb2.php @@ -35,8 +35,6 @@ */ class rcube_mdb2 { - private static $tables; - var $db_dsnw; // DSN for write operations var $db_dsnr; // DSN for read operations var $db_connected = false; // Already connected ? @@ -48,6 +46,8 @@ class rcube_mdb2 var $a_query_results = array('dummy'); var $last_res_id = 0; + + private $tables; /** @@ -403,8 +403,8 @@ class rcube_mdb2 function list_tables() { // get tables if not cached - if (!self::$tables) { - self::$tables = array(); + if (!$this->tables) { + $this->tables = array(); switch ($this->db_provider) { case 'sqlite': @@ -416,10 +416,10 @@ class rcube_mdb2 if ($result !== false && !PEAR::isError($result)) while ($rec = $result->fetchRow(MDB2_FETCHMODE_ORDERED)) - self::$tables[] = $rec[0]; + $this->tables[] = $rec[0]; } - return self::$tables; + return $this->tables; } |