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/core/Common.php | |
parent | 318c485b7b83356543c9aa7ab65464893d7eb8fe (diff) |
Fix some minor PHP 8.1 deprecation warnings
Diffstat (limited to 'system/core/Common.php')
-rw-r--r-- | system/core/Common.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/system/core/Common.php b/system/core/Common.php index 9e23a4ea5..a9b8828e3 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -778,11 +778,9 @@ if ( ! function_exists('_stringify_attributes')) */ function _stringify_attributes($attributes, $js = FALSE) { - $atts = NULL; - if (empty($attributes)) { - return $atts; + return NULL; } if (is_string($attributes)) @@ -792,6 +790,7 @@ if ( ! function_exists('_stringify_attributes')) $attributes = (array) $attributes; + $atts = ''; foreach ($attributes as $key => $val) { $atts .= ($js) ? $key.'='.$val.',' : ' '.$key.'="'.$val.'"'; |