обработка ошибки подключения к базе
This commit is contained in:
parent
794570171d
commit
484b2e4f8a
@ -21,9 +21,11 @@ class EffectsModel
|
||||
*/
|
||||
public function getHideUserInfoStatus()
|
||||
{
|
||||
while ($row = $this->DB->fetch_object()) {
|
||||
if ($row->type == self::EFFECT_HIDEUSERINFO) {
|
||||
return $row->time;
|
||||
if ($this->DB) {
|
||||
while ($row = $this->DB->fetch_object()) {
|
||||
if ($row->type == self::EFFECT_HIDEUSERINFO) {
|
||||
return $row->time;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user