From d3664623169c8db7a83b4049e4d3ef7b8714a923 Mon Sep 17 00:00:00 2001 From: thomascube Date: Sun, 31 Oct 2010 10:38:16 +0000 Subject: Fix cleandb script --- bin/cleandb.sh | 5 +++-- 1 file 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]); -- cgit v1.2.3