mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 11:28:55 +00:00
[ticket/11212] Allow dispatcher to be absent during garbage_collection()
PHPBB3-11212
This commit is contained in:
parent
5fad4006e1
commit
9cdef7984f
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue