diff options
author | Mario <mario@mariovavti.com> | 2022-02-02 12:40:09 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-02-02 12:40:09 +0000 |
commit | 2a15d2c42154eabbd6feea946f6e932969473ff1 (patch) | |
tree | 9dd1e6db4a7e7820d0bad680e2785b0937f28da9 /include/items.php | |
parent | bacf19688f8bd795bed5c56197ea1273f8b27535 (diff) | |
download | volse-hubzilla-2a15d2c42154eabbd6feea946f6e932969473ff1.tar.gz volse-hubzilla-2a15d2c42154eabbd6feea946f6e932969473ff1.tar.bz2 volse-hubzilla-2a15d2c42154eabbd6feea946f6e932969473ff1.zip |
more PHP 8.1 deprecated warnings
Diffstat (limited to 'include/items.php')
-rw-r--r-- | include/items.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php index 822e2d88b..e198ea54f 100644 --- a/include/items.php +++ b/include/items.php @@ -1625,9 +1625,9 @@ function item_store($arr, $allow_exec = false, $deliver = true) { return $ret; } - $arr['title'] = ((array_key_exists('title',$arr) && strlen($arr['title'])) ? trim($arr['title']) : ''); - $arr['summary'] = ((array_key_exists('summary',$arr) && strlen($arr['summary'])) ? trim($arr['summary']) : ''); - $arr['body'] = ((array_key_exists('body',$arr) && strlen($arr['body'])) ? trim($arr['body']) : ''); + $arr['title'] = ((array_key_exists('title',$arr) && $arr['title']) ? trim($arr['title']) : ''); + $arr['summary'] = ((array_key_exists('summary',$arr) && $arr['summary']) ? trim($arr['summary']) : ''); + $arr['body'] = ((array_key_exists('body',$arr) && $arr['body']) ? trim($arr['body']) : ''); $arr['allow_cid'] = ((x($arr,'allow_cid')) ? trim($arr['allow_cid']) : ''); $arr['allow_gid'] = ((x($arr,'allow_gid')) ? trim($arr['allow_gid']) : ''); |