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:
parent
5fad4006e1
commit
9cdef7984f
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user