Skip to content
Snippets Groups Projects
Commit c86d1824 authored by John Kristensen's avatar John Kristensen
Browse files

Improve handling of calendar export $_GET params

 * a notice would be reported if either of the 'cal' or 'event' $_GET params
   where not supplied, which would result in 'Cannot modify header information'
   warnings
parent ef8826ac
Branches
No related tags found
No related merge requests found
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
require_once ("../../lib/base.php"); require_once ("../../lib/base.php");
OC_Util::checkLoggedIn(); OC_Util::checkLoggedIn();
OC_Util::checkAppEnabled('calendar'); OC_Util::checkAppEnabled('calendar');
$cal = $_GET["calid"]; $cal = isset($_GET["calid"]) ? $_GET["calid"] : NULL;
$event = $_GET["eventid"]; $event = isset($_GET["eventid"]) ? $_GET["eventid"] : NULL;
if(isset($cal)){ if(isset($cal)){
$calendar = OC_Calendar_Calendar::findCalendar($cal); $calendar = OC_Calendar_Calendar::findCalendar($cal);
if($calendar["userid"] != OC_User::getUser()){ if($calendar["userid"] != OC_User::getUser()){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment