diff options
author | thomascube <thomas@roundcube.net> | 2010-10-31 10:38:16 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2010-10-31 10:38:16 +0000 |
commit | d3664623169c8db7a83b4049e4d3ef7b8714a923 (patch) | |
tree | d219ee7e339f264597adb4026d52639f1183861e /bin/cleandb.sh | |
parent | 36911ea111b3e633b9157ed306022b026e72dd60 (diff) |
Fix cleandb script
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]); |