diff --git a/apps/calendar/ajax/import/import.php b/apps/calendar/ajax/import/import.php index b251c94f4f..63f761dd27 100644 --- a/apps/calendar/ajax/import/import.php +++ b/apps/calendar/ajax/import/import.php @@ -24,7 +24,7 @@ $newcal = false; if($_POST['method'] == 'new'){ $calendars = OC_Calendar_Calendar::allCalendars(OCP\User::getUser()); foreach($calendars as $calendar){ - if($calendar['dispalyname'] == $_POST['calname']){ + if($calendar['displayname'] == $_POST['calname']){ $id = $calendar['id']; $newcal = false; break;