mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
moved valid id check to top
This commit is contained in:
parent
8e627025b3
commit
c1fa47e119
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user