mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 02:14:13 +00:00
CodeIgniter fix to deal with null-values
This commit is contained in:
@@ -1062,7 +1062,7 @@ class CI_Form_validation {
|
||||
{
|
||||
return is_array($str)
|
||||
? (empty($str) === FALSE)
|
||||
: (trim($str) !== '');
|
||||
: (trim($str ?? '') !== '');
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user