diff --git a/mail/inc/class.mail_compose.inc.php b/mail/inc/class.mail_compose.inc.php index 052d9f5bdf..04a048d261 100644 --- a/mail/inc/class.mail_compose.inc.php +++ b/mail/inc/class.mail_compose.inc.php @@ -2077,7 +2077,7 @@ class mail_compose { //error_log(__METHOD__."about to call calendar_ical"); $calendar_ical = new calendar_ical(); - $eventid = $calendar_ical->search($attachment['attachment'],-1); + $eventid = $calendar_ical->iCalSearch($attachment['attachment'],-1); //error_log(__METHOD__.array2string($eventid)); if (!$eventid) $eventid = -1; $event = $calendar_ical->importVCal($attachment['attachment'],(is_array($eventid)?$eventid[0]:$eventid),null,true);