summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-10-31 10:38:16 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-10-31 10:38:16 +0000
commit6515a57bc35f675616d92eae312e67cbedf3225a (patch)
treed85617c2537d7a4f898d07f9c17935340912d221
parent88e7501a8d7eb4b97681a8297d02b35c7d4bd6b6 (diff)
Fix cleandb script
git-svn-id: https://svn.roundcube.net/trunk@4164 208e9e7b-5314-0410-a742-e7e81cd9613c
-rwxr-xr-xroundcubemail/bin/cleandb.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/bin/cleandb.sh b/roundcubemail/bin/cleandb.sh
index 8124d2c2a..4fb9292d6 100755
--- a/roundcubemail/bin/cleandb.sh
+++ b/roundcubemail/bin/cleandb.sh
@@ -36,9 +36,10 @@ $primary_keys = array(
// connect to DB
$RCMAIL = rcmail::get_instance();
$db = $RCMAIL->get_dbh();
+$db->db_connect('w');
-if (!$db->is_connected() || $db->is_error)
- die("No DB connection");
+if (!$db->is_connected() || $db->is_error())
+ die("No DB connection\n");
if (!empty($_SERVER['argv'][1]))
$days = intval($_SERVER['argv'][1]);