system: two dashboard warnings fixed

This commit is contained in:
Franco Fichtner 2022-07-19 17:16:51 +02:00
parent a256697cbf
commit 7c42dfa319
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
<?php endif ?>
</td>
<td style="width:35%; word-break: break-word;">
<?= empty($ifinfo['media']) ? htmlspecialchars($ifinfo['cell_mode']) : htmlspecialchars($ifinfo['media']) ?>
<?= htmlspecialchars(empty($ifinfo['media']) ? $ifinfo['cell_mode'] ?? '' : $ifinfo['media']) ?>
</td>
<td style="width:45%; word-break: break-word;">
<?= htmlspecialchars($ifinfo['ipaddr']) ?>

View File

@ -36,7 +36,7 @@ require_once("interfaces.inc");
$pconfig = $_POST;
if (is_numeric($pconfig['filterlogentries'])) {
if (is_numeric($pconfig['filterlogentries'] ?? null)) {
$config['widgets']['filterlogentries'] = $pconfig['filterlogentries'];
$config['widgets']['filterlogentriesupdateinterval'] = $pconfig['filterlogentriesupdateinterval'];