Skip to content

Commit 15a5727

Browse files
committed
Hotfix disable link when there's no log
1 parent 699faed commit 15a5727

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/public/view.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,11 @@
210210
<tr>
211211
<td><?php echo htmlentities(date("d/m/Y H:i:s", $data['timestamp']));?></td>
212212
<td><?php echo htmlentities($data['extraData']);?></td>
213-
<td><a href="logview.php?t=<?php echo htmlentities($trigger['stringUrl']);?>&f=<?php echo htmlentities($data['logFilename'])."&d=".$data['timestamp'];?>">Log available</a></td>
213+
<td>
214+
<?php if ($data['logFilename'] != NULL): ?>
215+
<a href="logview.php?t=<?php echo htmlentities($trigger['stringUrl']);?>&f=<?php echo htmlentities($data['logFilename'])."&d=".$data['timestamp'];?>">Log available</a>
216+
<?php endif; ?>
217+
</td>
214218
</tr>
215219
<?php endforeach; ?>
216220
</tbody>

0 commit comments

Comments
 (0)