options und leere rasse ist weg bei alle attacken

main
hecht 10 years ago
parent e53fb44b4c
commit 5edeb4fd41

@ -67,11 +67,6 @@ function showAttDetails($at_id) {
<p align="center"><b>Type</b></td> <p align="center"><b>Type</b></td>
<td width="340" height="25">&nbsp;<?php echo $at_info['type']; ?></td> <td width="340" height="25">&nbsp;<?php echo $at_info['type']; ?></td>
</tr> </tr>
<tr>
<td width="158" height="25">
<p align="center"><b>Options</b></td>
<td width="340" height="25">&nbsp;<?php echo print_r (json_decode ( $at_info['options'], true)); ?></td>
</tr>
<tr> <tr>
<td width="158" height="25"> <td width="158" height="25">
<p align="center"><b>Info</b></td> <p align="center"><b>Info</b></td>
@ -84,7 +79,7 @@ function showAttDetails($at_id) {
for($runden = 0; $runden < count($rassen_1); $runden++) { for($runden = 0; $runden < count($rassen_1); $runden++) {
$rasse = getRaceById($rassen_1[$runden]); $rasse = getRaceById($rassen_1[$runden]);
if($rasse['type'] == $npc_type['id']){ if($rasse == null || $rasse['type'] == $npc_type['id']){
continue; continue;
} }
$rassen_name = $rasse['name']; $rassen_name = $rasse['name'];

Loading…
Cancel
Save