diff options
author | Mario <mario@mariovavti.com> | 2022-02-13 18:58:12 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-02-13 18:58:12 +0000 |
commit | a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa (patch) | |
tree | 048628b0da961a7cfda32dce7ed3572875e22907 /include/bbcode.php | |
parent | 4b06bc552f04fc78545a450343cc59e236791a66 (diff) | |
download | volse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.tar.gz volse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.tar.bz2 volse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.zip |
address deprecation warnings
Diffstat (limited to 'include/bbcode.php')
-rw-r--r-- | include/bbcode.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index 03115effe..794cb25d0 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -488,9 +488,9 @@ function getAttachmentData($body) { $data["preview"] = html_entity_decode($preview, ENT_QUOTES, 'UTF-8'); } - $data["description"] = trim($match[3]); + $data["description"] = ((isset($match[3])) ? trim($match[3]) : ''); - $data["after"] = trim($match[4]); + $data["after"] = ((isset($match[4])) ? trim($match[4]) : ''); return $data; } |