mirror of
https://github.com/flarum/core.git
synced 2025-08-17 22:01:44 +02:00
Fix warning when deleting discussion forever
Related to flarum/core#842
This commit is contained in:
@@ -107,6 +107,10 @@ class UpdateTagMetadata
|
||||
*/
|
||||
protected function updateTags($discussion, $delta = 0, $tags = null)
|
||||
{
|
||||
if (! $discussion) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (! $tags) {
|
||||
$tags = $discussion->tags;
|
||||
}
|
||||
|
Reference in New Issue
Block a user