Fixed a php8 bug in audit model

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2022-08-28 08:17:10 +02:00
parent d3cec46696
commit 3d013bcd84

View File

@ -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) . " )";
}