mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 05:13:37 +08:00
Fix warning when deleting discussion forever
Related to flarum/core#842
This commit is contained in:
parent
287bdf10dd
commit
d5f3987cf7
|
@ -107,6 +107,10 @@ class UpdateTagMetadata
|
|||
*/
|
||||
protected function updateTags($discussion, $delta = 0, $tags = null)
|
||||
{
|
||||
if (! $discussion) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (! $tags) {
|
||||
$tags = $discussion->tags;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user