mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-28 20:45:00 +03:00
fix ошибки при создании топика без заголовка
This commit is contained in:
parent
e875a352bd
commit
134f39ffbb
|
@ -170,6 +170,11 @@ class ModuleTopic_EntityTopic extends Entity
|
|||
} else {
|
||||
return $this->Lang_Get('topic.add.notices.error_slug');
|
||||
}
|
||||
} else {
|
||||
/**
|
||||
* Заголовок топика пустой, генерируем случайный url
|
||||
*/
|
||||
$this->setSlug($this->Topic_GetUniqueSlug(func_generator(5), $this->getId()));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue