CodeIgniter fix to deal with null-values

This commit is contained in:
int2001
2023-08-01 13:01:20 +00:00
parent ff1b5b760d
commit 5c012f66c4

View File

@@ -1062,7 +1062,7 @@ class CI_Form_validation {
{
return is_array($str)
? (empty($str) === FALSE)
: (trim($str) !== '');
: (trim($str ?? '') !== '');
}
// --------------------------------------------------------------------