mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/11212] Allow dispatcher to be absent during garbage_collection()
PHPBB3-11212
This commit is contained in:
@@ -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))
|
||||||
|
Reference in New Issue
Block a user