diff options
author | Mario <mario@mariovavti.com> | 2023-05-10 20:33:38 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-05-10 20:33:38 +0000 |
commit | 8ac4547e73f708b1275bdd3b726c63a276dc8d25 (patch) | |
tree | 59a14fb7b9f6cfa2d257748600bcc6b441b8aa9f /include/items.php | |
parent | 3658975b69753f7383e7157806dab6c8214e2008 (diff) | |
download | volse-hubzilla-8ac4547e73f708b1275bdd3b726c63a276dc8d25.tar.gz volse-hubzilla-8ac4547e73f708b1275bdd3b726c63a276dc8d25.tar.bz2 volse-hubzilla-8ac4547e73f708b1275bdd3b726c63a276dc8d25.zip |
php warnings
Diffstat (limited to 'include/items.php')
-rw-r--r-- | include/items.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/items.php b/include/items.php index 316ab4b23..f6a93cc2c 100644 --- a/include/items.php +++ b/include/items.php @@ -719,12 +719,12 @@ function get_item_elements($x,$allow_code = false) { $arr['comment_policy'] = (($x['comment_scope']) ? htmlspecialchars($x['comment_scope'], ENT_COMPAT,'UTF-8',false) : 'contacts'); - $arr['sig'] = (($x['signature']) ? htmlspecialchars($x['signature'], ENT_COMPAT,'UTF-8',false) : ''); - $arr['obj'] = activity_sanitise($x['object']); - $arr['target'] = activity_sanitise($x['target']); - $arr['attach'] = activity_sanitise($x['attach']); - $arr['term'] = decode_tags($x['tags']); - $arr['iconfig'] = decode_item_meta($x['meta']); + $arr['sig'] = ((!empty($x['signature'])) ? htmlspecialchars($x['signature'], ENT_COMPAT,'UTF-8',false) : ''); + $arr['obj'] = ((!empty($x['object'])) ? activity_sanitise($x['object']) : ''); + $arr['target'] = ((!empty($x['target'])) ? activity_sanitise($x['target']) : ''); + $arr['attach'] = ((!empty($x['attach'])) ? activity_sanitise($x['attach']) : ''); + $arr['term'] = ((!empty($x['tags'])) ? decode_tags($x['tags']) : ''); + $arr['iconfig'] = ((!empty($x['meta'])) ? decode_item_meta($x['meta']) : ''); $arr['item_flags'] = 0; if(array_key_exists('flags',$x)) { |