1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01:00

[ticket/11212] Allow dispatcher to be absent during garbage_collection()

PHPBB3-11212
This commit is contained in:
Igor Wiedler 2012-11-17 01:17:23 +01:00
parent 5fad4006e1
commit 9cdef7984f

View File

@ -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))