program/include/main.inc | ●●●●● patch | view | raw | blame | history | |
program/include/rcube_mdb2.inc | ●●●●● patch | view | raw | blame | history |
program/include/main.inc
@@ -64,7 +64,8 @@ $DB->sqlite_initials = $INSTALL_PATH.'SQL/sqlite.initial.sql'; // we can use the database for storing session data if (is_object($DB) && $DB->db_provider!='sqlite') // session queries do not work with MDB2 if ($CONFIG['db_backend']!='mdb2' && is_object($DB) && $DB->db_provider!='sqlite') include_once('include/session.inc'); program/include/rcube_mdb2.inc
@@ -153,10 +153,10 @@ $this->db_handle->row_offset = $offset; $this->db_handle->row_limit = $numrows; $result = $this->db_handle->query($query,$params); //$q = $this->db_handle->prepare($query); //$q->bindParamArray($params); //$result = $q->execute(); //$result = $this->db_handle->query($query,$params); $q = $this->db_handle->prepare($query); $q->bindParamArray($params); $result = $q->execute(); if (PEAR::isError($result)) raise_error(array('code' => 500,