From 9bc50bdc49b65cc5a601449982c321f20e8bc8c6 Mon Sep 17 00:00:00 2001 From: Isaac Flores Date: Sun, 25 Oct 2009 19:28:45 -0500 Subject: [PATCH] minor - cleaning code in agenda tool --- main/calendar/agenda.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/calendar/agenda.inc.php b/main/calendar/agenda.inc.php index 74233fb503..1fa5e0b0b6 100644 --- a/main/calendar/agenda.inc.php +++ b/main/calendar/agenda.inc.php @@ -2143,7 +2143,7 @@ function display_agenda_items() echo ''; echo Display::return_icon('announce_add.gif', get_lang('AddAnnouncement'), array ('style' => 'width:16px; height:16px;'))." "; - if (isset($_GET['next_action']) && $_GET['next_action']==1 && $_GET['next_action'] == strval(intval($_GET['next_action']))) + if ($myrow['visibility']==1) { $image_visibility="visible.gif"; $text_visibility=get_lang("Hide");