mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +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)
|
return is_array($str)
|
||||||
? (empty($str) === FALSE)
|
? (empty($str) === FALSE)
|
||||||
: (trim($str) !== '');
|
: (trim($str ?? '') !== '');
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------------------
|
// --------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user