diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-06-15 00:28:12 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-06-15 00:28:12 +0200 |
commit | 1e76a530eadc9568e0630197201648d40b4ad2d4 (patch) | |
tree | 8ad83c3559efa6646005f97d4d9deebcc951b974 /apps/calendar/lib/app.php | |
parent | 31db583f0305cbd1eee6dc3b867e7e7ffb3c25b9 (diff) | |
download | nextcloud-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.php | 5 |
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; } /* |