diff --git a/html/pages/alert-log.inc.php b/html/pages/alert-log.inc.php
index 8af3f9a32c..51a9279581 100644
--- a/html/pages/alert-log.inc.php
+++ b/html/pages/alert-log.inc.php
@@ -36,6 +36,12 @@ if (isset($_POST['device_id'])) {
} else {
$default_option = '';
}
+if (isset($_POST['state'])) {
+ $state = htmlspecialchars($_POST['state']);
+} else {
+ $state = '-1';
+}
+
?>
@@ -90,7 +96,7 @@ if (isset($_POST['device_id'])) {
return {
id: "alertlog",
device_id: '',
- state: ''
+ state: ''
};
},
url: "ajax_table.php"