summaryrefslogtreecommitdiff
path: root/program/steps/utils/killcache.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/steps/utils/killcache.inc')
-rw-r--r--program/steps/utils/killcache.inc16
1 files changed, 8 insertions, 8 deletions
diff --git a/program/steps/utils/killcache.inc b/program/steps/utils/killcache.inc
index 033cdd075..1cb99b879 100644
--- a/program/steps/utils/killcache.inc
+++ b/program/steps/utils/killcache.inc
@@ -27,23 +27,23 @@ if (!$RCMAIL->config->get('devel_mode')) {
// @TODO: transaction here (if supported by DB) would be a good thing
$res = $RCMAIL->db->query("DELETE FROM cache");
-if (PEAR::isError($res)) {
- exit($res->getMessage());
+if ($err = $RCMAIL->db->is_error($res)) {
+ exit($err);
}
$res = $RCMAIL->db->query("DELETE FROM cache_messages");
-if (PEAR::isError($res)) {
- exit($res->getMessage());
+if ($err = $RCMAIL->db->is_error($res)) {
+ exit($err);
}
$res = $RCMAIL->db->query("DELETE FROM cache_index");
-if (PEAR::isError($res)) {
- exit($res->getMessage());
+if ($err = $RCMAIL->db->is_error($res)) {
+ exit($err);
}
$res = $RCMAIL->db->query("DELETE FROM cache_thread");
-if (PEAR::isError($res)) {
- exit($res->getMessage());
+if ($err = $RCMAIL->db->is_error($res)) {
+ exit($err);
}
echo "Cache cleared\n";