From c1fa47e119d67be03634874b849bf635319ffd35 Mon Sep 17 00:00:00 2001 From: skeeter Date: Thu, 16 Nov 2000 12:20:37 +0000 Subject: [PATCH] moved valid id check to top --- calendar/view.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/calendar/view.php b/calendar/view.php index 36e6433437..74aceb365a 100755 --- a/calendar/view.php +++ b/calendar/view.php @@ -17,6 +17,11 @@ $phpgw_info["flags"] = array("currentapp" => "calendar", "enable_calendar_class" => True, "enable_nextmatchs_class" => True); include("../header.inc.php"); + if ($id < 1) { + echo lang("Invalid entry id."); + exit; + } + function grab_group($db,$id) { $db->query("select groups from webcal_entry_groups where cal_id=$id"); @@ -34,10 +39,6 @@ $unapproved = FALSE; - if ($id < 1) { - echo lang("Invalid entry id."); - exit; - } // first see who has access to view this entry $is_my_event = false;