Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/calendar/export.php')
-rw-r--r--apps/calendar/export.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/calendar/export.php b/apps/calendar/export.php
index f03a5d23e68..d5ca5eeedad 100644
--- a/apps/calendar/export.php
+++ b/apps/calendar/export.php
@@ -18,14 +18,11 @@
* MA 02111-1307 USA *
*************************************************/
require_once ("../../lib/base.php");
-if(!OC_USER::isLoggedIn()) {
- header("Location: " . OC_HELPER::linkTo("", "index.php"));
- exit;
-}
+OC_Util::checkLoggedIn();
$cal = $_GET["calid"];
$calendar = OC_Calendar_Calendar::findCalendar($cal);
if($calendar["userid"] != OC_User::getUser()){
- header("Location: " . OC_HELPER::linkTo("", "index.php"));
+ header( 'Location: '.OC_Helper::linkTo('', 'index.php'));
exit;
}
$calobjects = OC_Calendar_Object::all($cal);