summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-03-02 11:56:25 +0000
committeralecpl <alec@alec.pl>2012-03-02 11:56:25 +0000
commit0411ae5a29632e9f157071afa7acdda48e8de20b (patch)
tree72178968394691a1902a840a3a6c1fcedf2495ea /program/include/main.inc
parent2d3f635a978ab434944f92ce2d019caaf9ccbbf1 (diff)
- Fix PHP Fatal error: Using $this when not in object context
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 33a7c5cbc..7a3e1c0ec 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -169,7 +169,7 @@ function rcmail_cache_gc()
// get target timestamp
$ts = get_offset_time($rcmail->config->get('message_cache_lifetime', '30d'), -1);
- if ($rcmail->config->get('messages_cache') || $this->config->get('enable_caching')) {
+ if ($rcmail->config->get('messages_cache') || $rcmail->config->get('enable_caching')) {
$db->query("DELETE FROM ".get_table_name('cache_messages')
." WHERE changed < " . $db->fromunixtime($ts));