From 5c012f66c42797af3203d590721fd80ec3e9fc0f Mon Sep 17 00:00:00 2001 From: int2001 Date: Tue, 1 Aug 2023 13:01:20 +0000 Subject: [PATCH] CodeIgniter fix to deal with null-values --- system/libraries/Form_validation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 32cdc6bd..42fe0241 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -1062,7 +1062,7 @@ class CI_Form_validation { { return is_array($str) ? (empty($str) === FALSE) - : (trim($str) !== ''); + : (trim($str ?? '') !== ''); } // --------------------------------------------------------------------