Эксепшоны не нужны.
This commit is contained in:
parent
c99e54af1a
commit
1de0d465eb
@ -172,14 +172,14 @@ INFO;
|
||||
$effects = new EffectsModel($this->id);
|
||||
|
||||
if ($this->block && (!$this->watcherIsAdmin || !$this->watcherIsModerator)) {
|
||||
throw new GameException('<span class="error">Персонаж ' . $this->login . ' заблокирован!</span>');
|
||||
echo "<span class='error'>Персонаж $this->login заблокирован!</span>";
|
||||
} elseif ($effects->getHideUserInfoStatus() && (!$this->watcherIsAdmin || !$this->watcherIsModerator)) {
|
||||
if ($effects->getHideUserInfoStatus() == -1) {
|
||||
$date = 'навсегда';
|
||||
} else {
|
||||
$date = 'до' . date('d.m.Y', strtotime($effects->getHideUserInfoStatus()));
|
||||
}
|
||||
throw new GameException('<span class="error">Персонаж ' . $this->login . ' обезличен ' . $date . '.</span>');
|
||||
echo "<span class='error'>Персонаж $this->login обезличен $date.</span>";
|
||||
} else {
|
||||
$this->Info();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user