summaryrefslogtreecommitdiff
path: root/program
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 /program
parent652a7f0ed2e6d1749fd56cd951e5daea2a4b171a (diff)
- Fix read/write database recognition (#1485811)
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_mdb2.php2
1 files changed, 1 insertions, 1 deletions
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';