aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2012-11-17 01:17:23 +0100
committerIgor Wiedler <igor@wiedler.ch>2012-11-17 01:17:23 +0100
commit9cdef7984f5162fa19ce36852331f79de3561f66 (patch)
treed88321b3741d7ff1854cae690c68fa66122466a3 /phpBB
parent5fad4006e102ddec8afe17a1315971fed3d29376 (diff)
downloadforums-9cdef7984f5162fa19ce36852331f79de3561f66.tar
forums-9cdef7984f5162fa19ce36852331f79de3561f66.tar.gz
forums-9cdef7984f5162fa19ce36852331f79de3561f66.tar.bz2
forums-9cdef7984f5162fa19ce36852331f79de3561f66.tar.xz
forums-9cdef7984f5162fa19ce36852331f79de3561f66.zip
[ticket/11212] Allow dispatcher to be absent during garbage_collection()
PHPBB3-11212
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index dd82c9dc46..4754d5194f 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -5348,7 +5348,9 @@ function garbage_collection()
* @event core.garbage_collection
* @since 3.1-A1
*/
- $phpbb_dispatcher->dispatch('core.garbage_collection');
+ if (!empty($phpbb_dispatcher)) {
+ $phpbb_dispatcher->dispatch('core.garbage_collection');
+ }
// Unload cache, must be done before the DB connection if closed
if (!empty($cache))