summaryrefslogtreecommitdiffstats
path: root/apps/calendar/lib/app.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-06-15 00:28:12 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-06-15 00:28:12 +0200
commit1e76a530eadc9568e0630197201648d40b4ad2d4 (patch)
tree8ad83c3559efa6646005f97d4d9deebcc951b974 /apps/calendar/lib/app.php
parent31db583f0305cbd1eee6dc3b867e7e7ffb3c25b9 (diff)
downloadnextcloud-server-1e76a530eadc9568e0630197201648d40b4ad2d4.tar.gz
nextcloud-server-1e76a530eadc9568e0630197201648d40b4ad2d4.zip
No need to find calendar twice.
Diffstat (limited to 'apps/calendar/lib/app.php')
-rw-r--r--apps/calendar/lib/app.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/calendar/lib/app.php b/apps/calendar/lib/app.php
index e04f2ed0cdf..74cf9f01037 100644
--- a/apps/calendar/lib/app.php
+++ b/apps/calendar/lib/app.php
@@ -50,10 +50,7 @@ class OC_Calendar_App{
return false;
}
}
- if($calendar === false){
- return false;
- }
- return OC_Calendar_Calendar::find($id);
+ return $calendar;
}
/*