Set user id

pull/2487/head
jmontoyaa 9 years ago
parent d041cf2ce6
commit 0d70ee3fd9
  1. 4
      main/inc/lib/AnnouncementManager.php

@ -283,7 +283,7 @@ class AnnouncementManager
) {
$modify_icons = "<a href=\"" . api_get_self() . "?" . api_get_cidreq() . "&action=modify&id=" . $announcement_id . "\">" .
Display::return_icon('edit.png', get_lang('Edit'), '', ICON_SIZE_SMALL) . "</a>";
if ($itemProperty->getVisibility() == 1) {
if ($itemProperty->getVisibility() === 1) {
$image_visibility = "visible";
$alt_visibility = get_lang('Hide');
} else {
@ -304,7 +304,7 @@ class AnnouncementManager
}
$toUser = $itemProperty->getToUser();
$toUserId = !empty($toUser) ? $toUser : 0;
$toUserId = !empty($toUser) ? $toUser->getId() : 0;
$content = self::parse_content(
$toUserId,

Loading…
Cancel
Save