moved valid id check to top

This commit is contained in:
skeeter 2000-11-16 12:20:37 +00:00
parent 8e627025b3
commit c1fa47e119

View File

@ -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;