summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2010-10-31 10:38:16 +0000
committerthomascube <thomas@roundcube.net>2010-10-31 10:38:16 +0000
commitd3664623169c8db7a83b4049e4d3ef7b8714a923 (patch)
treed219ee7e339f264597adb4026d52639f1183861e
parent36911ea111b3e633b9157ed306022b026e72dd60 (diff)
Fix cleandb script
-rwxr-xr-xbin/cleandb.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/cleandb.sh b/bin/cleandb.sh
index 8124d2c2a..4fb9292d6 100755
--- a/bin/cleandb.sh
+++ b/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]);