diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-31 15:27:55 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-31 15:27:55 +0000 |
| commit | ae3bf0afc39f46d5b950d07df269d1542a8e9c0f (patch) | |
| tree | 24879c052ec4b11938711a58334411b9f0e8ca3e /roundcubemail/program/include | |
| parent | 64be498b8042be839e0fb20aa08e0c36a7cc3b2d (diff) | |
List of tables mustn't be static (wtf?)
git-svn-id: https://svn.roundcube.net/trunk@3450 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcube_mdb2.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/roundcubemail/program/include/rcube_mdb2.php b/roundcubemail/program/include/rcube_mdb2.php index 10aaabe4a..2f4ea26a4 100644 --- a/roundcubemail/program/include/rcube_mdb2.php +++ b/roundcubemail/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; } |
