mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 03:48:53 +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
|
* @event core.garbage_collection
|
||||||
* @since 3.1-A1
|
* @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
|
// Unload cache, must be done before the DB connection if closed
|
||||||
if (!empty($cache))
|
if (!empty($cache))
|
||||||
|
|
Loading…
Add table
Reference in a new issue