summaryrefslogtreecommitdiffstats
path: root/system/libraries/Form_validation.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2022-01-05 15:25:49 +0100
committerAndrey Andreev <narf@devilix.net>2022-01-05 15:25:49 +0100
commit39da78b2588a60a2f43fb8f77448ab9604550978 (patch)
tree4d0489559a6040ef929921444e6b207adb6824ab /system/libraries/Form_validation.php
parent318c485b7b83356543c9aa7ab65464893d7eb8fe (diff)
Fix some minor PHP 8.1 deprecation warnings
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r--system/libraries/Form_validation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 9d976984e..1b7bbb96c 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -1056,7 +1056,7 @@ class CI_Form_validation {
{
return is_array($str)
? (empty($str) === FALSE)
- : (trim($str) !== '');
+ : (trim((string) $str) !== '');
}
// --------------------------------------------------------------------