Fix audit log page.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2020-02-21 19:05:09 +01:00
parent dd7b2b20ef
commit 1300b5411a
3 changed files with 23 additions and 15 deletions

View File

@@ -18,7 +18,12 @@ if (empty($api)) {
// Split individual domains into array
$domains = preg_split('/\s+/', trim($_POST['domain']));
$comment = trim($_POST['comment']);
// Get comment if available
$comment = null;
if(isset($_POST['comment'])) {
$comment = trim($_POST['comment']);
}
// Convert domain name to IDNA ASCII form for international domains
// Do this only for exact domains, not for regex filters
@@ -70,7 +75,7 @@ switch($list) {
break;
case "audit":
echo add_to_table($db, "domain_audit", $domains, $comment);
echo add_to_table($db, "domain_audit", $domains);
break;
default: