Skip to content

Commit

Permalink
Merge pull request #10 from EncryptEx/hotfix
Browse files Browse the repository at this point in the history
FIX: Disable link when there's no logfile available
  • Loading branch information
EncryptEx authored Aug 20, 2023
2 parents 699faed + dc489a7 commit 2786056
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/public/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,11 @@
<tr>
<td><?php echo htmlentities(date("d/m/Y H:i:s", $data['timestamp']));?></td>
<td><?php echo htmlentities($data['extraData']);?></td>
<td><a href="logview.php?t=<?php echo htmlentities($trigger['stringUrl']);?>&f=<?php echo htmlentities($data['logFilename'])."&d=".$data['timestamp'];?>">Log available</a></td>
<td>
<?php if ($data['logFilename'] != null): ?>
<a href="logview.php?t=<?php echo htmlentities($trigger['stringUrl']);?>&f=<?php echo htmlentities($data['logFilename'])."&d=".$data['timestamp'];?>">Log available</a>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
Expand Down

0 comments on commit 2786056

Please sign in to comment.