summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-04-21 06:50:48 +0000
committeralecpl <alec@alec.pl>2009-04-21 06:50:48 +0000
commitbac356569586eafca9fd1e5578c031a36a8c95ea (patch)
treec78f6975540e8864593907bd6f24bdca51bc7ec5
parent652a7f0ed2e6d1749fd56cd951e5daea2a4b171a (diff)
- Fix read/write database recognition (#1485811)
-rw-r--r--CHANGELOG1
-rw-r--r--program/include/rcube_mdb2.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index ecc2a0a3b..3e0fce855 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail
===========================
+- Fix read/write database recognition (#1485811)
- Fix quicksearchbox look in Chrome and Konqueror (#1484841)
- Fix UTF-8 byte-order mark removing (#1485514)
- Fix folders subscribtions on Konqueror (#1484841)
diff --git a/program/include/rcube_mdb2.php b/program/include/rcube_mdb2.php
index 54fd35787..1c491a874 100644
--- a/program/include/rcube_mdb2.php
+++ b/program/include/rcube_mdb2.php
@@ -228,7 +228,7 @@ class rcube_mdb2
function _query($query, $offset, $numrows, $params)
{
// Read or write ?
- if (strtolower(trim(substr($query,0,6)))=='select')
+ if (strtolower(substr(trim($query),0,6))=='select')
$mode='r';
else
$mode='w';