aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-05-10 20:33:38 +0000
committerMario <mario@mariovavti.com>2023-05-10 20:33:38 +0000
commit8ac4547e73f708b1275bdd3b726c63a276dc8d25 (patch)
tree59a14fb7b9f6cfa2d257748600bcc6b441b8aa9f /include
parent3658975b69753f7383e7157806dab6c8214e2008 (diff)
downloadvolse-hubzilla-8ac4547e73f708b1275bdd3b726c63a276dc8d25.tar.gz
volse-hubzilla-8ac4547e73f708b1275bdd3b726c63a276dc8d25.tar.bz2
volse-hubzilla-8ac4547e73f708b1275bdd3b726c63a276dc8d25.zip
php warnings
Diffstat (limited to 'include')
-rw-r--r--include/items.php12
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)) {