X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotifications.php;h=af44097c1cb42a508c3267665d37b8fd2de8c52e;hb=0c9cc29a51941eb572bf16fd5489d0947d47d033;hp=01dce2f447df1b9ce2fb6e2bbc641c106a4a2dcb;hpb=de02154a1b1073890ff304d4dd1cab109e9bd84b;p=friendica.git diff --git a/mod/notifications.php b/mod/notifications.php index 01dce2f447..af44097c1c 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -148,8 +148,8 @@ function notifications_content(&$a) { // The link to switch between ignored and normal connection requests $notif_show_lnk = array( - 'href' => ($all === false ? 'notifications/intros/all' : 'notifications/intros' ), - 'text' => ($all === false ? t('Show Ignored Requests') : t('Hide Ignored Requests')) + 'href' => (!$all ? 'notifications/intros/all' : 'notifications/intros' ), + 'text' => (!$all ? t('Show Ignored Requests') : t('Hide Ignored Requests')) ); // Loop through all introduction notifications.This creates an array with the output html for each @@ -285,7 +285,7 @@ function notifications_content(&$a) { '$item_label' => $it['label'], '$item_link' => $it['link'], '$item_image' => $it['image'], - '$item_text' => $it['text'], + '$item_text' => htmlentities($it['text']), '$item_when' => $it['when'], '$item_seen' => $it['seen'], ));