From 484b2e4f8a0dab27b562caa9df32405055c176ef Mon Sep 17 00:00:00 2001 From: lopar Date: Mon, 6 Jul 2020 00:31:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=BA=20=D0=B1=D0=B0=D0=B7=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/EffectsModel.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/models/EffectsModel.php b/models/EffectsModel.php index 61a7251..2ee88b5 100644 --- a/models/EffectsModel.php +++ b/models/EffectsModel.php @@ -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;