Не были проставлены индексы в while().
This commit is contained in:
@@ -28,8 +28,8 @@ class EffectsModel
|
||||
if ($this->DB) {
|
||||
$i = 0;
|
||||
while ($i < count($this->DB)) {
|
||||
if ($this->DB->type == self::EFFECT_HIDEUSERINFO) {
|
||||
return $this->DB->remaining_time;
|
||||
if ($this->DB[$i]->type == self::EFFECT_HIDEUSERINFO) {
|
||||
return $this->DB[$i]->remaining_time;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user