генерация ошибки showinf_pers();

This commit is contained in:
lopar 2020-07-04 13:54:23 +03:00
parent c6316820a0
commit cfa72bbc83
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ if (empty($user->id)): ?>
<table width=100%>
<tr>
<td style="width: 250px; vertical-align: top;">
<?php echo showinf_pers($user['id']);
<?php
try {echo showinf_pers($user['id']);} catch (Exception $e) {echo "<div class='private'>Ошибка генератора персонажа showinf_pers(): {$e}</div>";}
if (!empty($user->married)): ?>
<a href="inf.php?<?= $user->married ?>" target=_blank>
<img alt="В браке с <?= $user->married ?>" src="i/married.gif"