diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-12-19 14:15:11 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-12-19 14:15:11 +0100 |
commit | a8ffab3f4ff54af41c9041a30eb989954d6ffc17 (patch) | |
tree | 1a206b35779e717e23f70254372b8d183a329d66 /program/lib/Roundcube/rcube_db_sqlite.php | |
parent | c23dc87f2b76ac76968c73bc9f31920b316282c6 (diff) |
Fix Call to undefined method rcube_db_sqlite::_get_result()
Diffstat (limited to 'program/lib/Roundcube/rcube_db_sqlite.php')
-rw-r--r-- | program/lib/Roundcube/rcube_db_sqlite.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/program/lib/Roundcube/rcube_db_sqlite.php b/program/lib/Roundcube/rcube_db_sqlite.php index 326c6a710..145b8a371 100644 --- a/program/lib/Roundcube/rcube_db_sqlite.php +++ b/program/lib/Roundcube/rcube_db_sqlite.php @@ -120,12 +120,7 @@ class rcube_db_sqlite extends rcube_db $q = $this->query('SELECT name FROM sqlite_master' .' WHERE type = \'table\' ORDER BY name'); - if ($res = $this->_get_result($q)) { - $this->tables = $res->fetchAll(PDO::FETCH_COLUMN, 0); - } - else { - $this->tables = array(); - } + $this->tables = $q ? $q->fetchAll(PDO::FETCH_COLUMN, 0) : array(); } return $this->tables; |