]> source.dussan.org Git - nextcloud-server.git/commitdiff
No need to find calendar twice.
authorThomas Tanghus <thomas@tanghus.net>
Thu, 14 Jun 2012 22:28:12 +0000 (00:28 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Thu, 14 Jun 2012 22:28:12 +0000 (00:28 +0200)
apps/calendar/lib/app.php

index e04f2ed0cdfd77115edcac61d8ec3b425ad480a8..74cf9f010370b200b119f1c289ecc65e77fc43ab 100644 (file)
@@ -50,10 +50,7 @@ class OC_Calendar_App{
                                return false;
                        }
                }
-               if($calendar === false){
-                       return false;
-               }
-               return OC_Calendar_Calendar::find($id);
+               return $calendar;
        }
        
        /*