From 3d013bcd8456861e30e02300b48a922c8eef06fc Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sun, 28 Aug 2022 08:17:10 +0200 Subject: [PATCH] Fixed a php8 bug in audit model Signed-off-by: Janos SUTO --- webui/model/audit/audit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/model/audit/audit.php b/webui/model/audit/audit.php index 6fa71436..010f11e9 100644 --- a/webui/model/audit/audit.php +++ b/webui/model/audit/audit.php @@ -24,7 +24,7 @@ class ModelAuditAudit extends Model { $sortorder = "ORDER BY `$sort` $order"; - if(isset($data['action']) && $data['action'] != ACTION_ALL) { + if(isset($data['action']) && $data['action'] && $data['action'] != ACTION_ALL) { $where .= " AND ( " . $this->append_search_criteria("action", $data['action'], $arr) . " )"; }