aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-08 10:28:48 +0000
committerMario <mario@mariovavti.com>2024-03-08 10:28:48 +0000
commitba1e705c6154d347000ab6c92ef59f7f6f60e886 (patch)
treeb45e28853325e1037221c87a6ebd5e23cbc886c5
parent043e2ff58bb98a8901d5c60bcfed9d380e395199 (diff)
downloadvolse-hubzilla-ba1e705c6154d347000ab6c92ef59f7f6f60e886.tar.gz
volse-hubzilla-ba1e705c6154d347000ab6c92ef59f7f6f60e886.tar.bz2
volse-hubzilla-ba1e705c6154d347000ab6c92ef59f7f6f60e886.zip
passing null to mb_strlen() is deprecated
-rw-r--r--Zotlabs/Lib/Libzot.php4
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');
}