diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-04 13:07:48 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-04 13:07:48 +0000 |
| commit | f6df1b078309fbb65296df518e2ce815c93ef32e (patch) | |
| tree | f9c787b58924d09e2fc146abba7b522fd84f708d /roundcubemail/program/include/rcube_mdb2.php | |
| parent | a2b18b0141c573d78d681ea6e36a314b1bdf3c94 (diff) | |
- Fix rcube_mdb2::affected_rows() (#1486082)
git-svn-id: https://svn.roundcube.net/trunk@2920 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_mdb2.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_mdb2.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_mdb2.php b/roundcubemail/program/include/rcube_mdb2.php index 2fce391d9..5c945d93c 100644 --- a/roundcubemail/program/include/rcube_mdb2.php +++ b/roundcubemail/program/include/rcube_mdb2.php @@ -256,11 +256,11 @@ class rcube_mdb2 $result = $this->db_handle->setLimit($numrows,$offset); if (empty($params)) - $result = $this->db_handle->query($query); + $result = $mode=='r' ? $this->db_handle->query($query) : $this->db_handle->exec($query); else { $params = (array)$params; - $q = $this->db_handle->prepare($query); + $q = $this->db_handle->prepare($query, null, $mode=='w' ? MDB2_PREPARE_MANIP : null); if ($this->db_handle->isError($q)) { $this->db_error = TRUE; |
