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

This commit is contained in:
lopar 2020-07-04 13:54:23 +03:00
parent c6316820a0
commit cfa72bbc83

View File

@ -52,7 +52,8 @@ if (empty($user->id)): ?>
<table width=100%> <table width=100%>
<tr> <tr>
<td style="width: 250px; vertical-align: top;"> <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)): ?> if (!empty($user->married)): ?>
<a href="inf.php?<?= $user->married ?>" target=_blank> <a href="inf.php?<?= $user->married ?>" target=_blank>
<img alt="В браке с <?= $user->married ?>" src="i/married.gif" <img alt="В браке с <?= $user->married ?>" src="i/married.gif"