]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix for previous commit
authorGeorg Ehrke <dev@georgswebsite.de>
Thu, 28 Jun 2012 17:13:43 +0000 (19:13 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Thu, 28 Jun 2012 17:13:43 +0000 (19:13 +0200)
apps/calendar/share.php

index f8f9bb8ea42b49e6cd35762845343ac1304f8000..bffcf0b47097d37beba707c32242538be6bf3d71 100644 (file)
@@ -17,6 +17,7 @@ if($shared['type'] == OC_Calendar_Share::CALENDAR){
        header('Content-Disposition: inline; filename=' . str_replace(' ', '-', $calendar['displayname']) . '.ics'); 
        echo OC_Calendar_Export::export($shared['id'], OC_Calendar_Export::CALENDAR);
 }elseif($shared['type'] == OC_Calendar_Share::EVENT){
+       $data = OC_Calendar_App::getEventObject($shared['id'], false);
        if(!$data){
                header('HTTP/1.0 404 Not Found');
                exit;