Эксепшоны не нужны.

This commit is contained in:
lopar 2021-03-10 23:45:16 +02:00
parent c99e54af1a
commit 1de0d465eb
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}