diff options
author | Mario <mario@mariovavti.com> | 2024-03-08 10:28:48 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-03-08 10:28:48 +0000 |
commit | ba1e705c6154d347000ab6c92ef59f7f6f60e886 (patch) | |
tree | b45e28853325e1037221c87a6ebd5e23cbc886c5 /Zotlabs | |
parent | 043e2ff58bb98a8901d5c60bcfed9d380e395199 (diff) | |
download | volse-hubzilla-ba1e705c6154d347000ab6c92ef59f7f6f60e886.tar.gz volse-hubzilla-ba1e705c6154d347000ab6c92ef59f7f6f60e886.tar.bz2 volse-hubzilla-ba1e705c6154d347000ab6c92ef59f7f6f60e886.zip |
passing null to mb_strlen() is deprecated
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index 942c3082a..3495ede06 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -1890,12 +1890,12 @@ class Libzot { $maxlen = get_max_import_size(); - if ($maxlen && mb_strlen($arr['body']) > $maxlen) { + if ($maxlen && isset($arr['body']) && mb_strlen($arr['body']) > $maxlen) { $arr['body'] = mb_substr($arr['body'], 0, $maxlen, 'UTF-8'); logger('message length exceeds max_import_size: truncated'); } - if ($maxlen && mb_strlen($arr['summary']) > $maxlen) { + if ($maxlen && isset($arr['summary']) && mb_strlen($arr['summary']) > $maxlen) { $arr['summary'] = mb_substr($arr['summary'], 0, $maxlen, 'UTF-8'); logger('message summary length exceeds max_import_size: truncated'); } |