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