No need to find calendar twice.
This commit is contained in:
parent
31db583f03
commit
1e76a530ea
|
@ -50,10 +50,7 @@ class OC_Calendar_App{
|
|||
return false;
|
||||
}
|
||||
}
|
||||
if($calendar === false){
|
||||
return false;
|
||||
}
|
||||
return OC_Calendar_Calendar::find($id);
|
||||
return $calendar;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue