diff options
author | Andrey Andreev <narf@devilix.net> | 2022-01-05 15:25:49 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2022-01-05 15:25:49 +0100 |
commit | 39da78b2588a60a2f43fb8f77448ab9604550978 (patch) | |
tree | 4d0489559a6040ef929921444e6b207adb6824ab /system/libraries/Form_validation.php | |
parent | 318c485b7b83356543c9aa7ab65464893d7eb8fe (diff) |
Fix some minor PHP 8.1 deprecation warnings
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r-- | system/libraries/Form_validation.php | 2 |
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) !== ''); } // -------------------------------------------------------------------- |