From d7579d313433a3916034f6accbaf83baebaea9d0 Mon Sep 17 00:00:00 2001 From: Alexander Shursha Date: Mon, 31 Dec 2018 11:21:02 +0300 Subject: [PATCH] Fix checking empty value. (#3084) --- src/opnsense/mvc/app/library/OPNsense/Base/UIModelGrid.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/mvc/app/library/OPNsense/Base/UIModelGrid.php b/src/opnsense/mvc/app/library/OPNsense/Base/UIModelGrid.php index 2bc556c08..a5bb96ad9 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Base/UIModelGrid.php +++ b/src/opnsense/mvc/app/library/OPNsense/Base/UIModelGrid.php @@ -114,7 +114,7 @@ class UIModelGrid $row[$fieldname] .= $fieldValue['value']; } } - if (empty($row[$fieldname])) { + if ($row[$fieldname] === null) { $row[$fieldname] = ""; } }