diff options
author | Mario <mario@mariovavti.com> | 2021-12-17 19:48:09 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-12-17 19:48:09 +0100 |
commit | bfd3da43ac9226e53188a03ff1414a18422e91b4 (patch) | |
tree | b183e7c1c76aa8d39310fd702985bff7945e7053 /include/text.php | |
parent | 32a9eaf3b6a68626580078a3302f8dd8e85eb165 (diff) | |
download | volse-hubzilla-bfd3da43ac9226e53188a03ff1414a18422e91b4.tar.gz volse-hubzilla-bfd3da43ac9226e53188a03ff1414a18422e91b4.tar.bz2 volse-hubzilla-bfd3da43ac9226e53188a03ff1414a18422e91b4.zip |
access token refactor
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php index b2b3fce6e..84f112802 100644 --- a/include/text.php +++ b/include/text.php @@ -1715,7 +1715,7 @@ function prepare_body(&$item,$attach = false,$opts = false) { if ($is_photo) { $object = json_decode($item['obj'],true); $ptr = null; - if (array_key_exists('url',$object) && is_array($object['url'])) { + if (is_array($object) && array_key_exists('url',$object) && is_array($object['url'])) { if (array_key_exists(0,$object['url'])) { foreach ($object['url'] as $link) { if(array_key_exists('width',$link) && $link['width'] >= 640 && $link['width'] <= 1024) { |