diff options
Diffstat (limited to 'bin/cleandb.sh')
-rwxr-xr-x | bin/cleandb.sh | 5 |
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]); |