From 64d855c9b161bac59fef77706d651536bf68c2be Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 31 Mar 2010 15:27:55 +0000 Subject: List of tables mustn't be static (wtf?) --- program/include/rcube_mdb2.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'program/include') 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; } -- cgit v1.2.3