diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-06-15 00:50:42 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-06-15 00:50:42 +0200 |
commit | 0f6b1be0e6f0cc6ff97c97190c7da67f5fee0294 (patch) | |
tree | a7dc6314385b047c328deb34d5738e476f3388cd /apps/calendar/lib/calendar.php | |
parent | 1e76a530eadc9568e0630197201648d40b4ad2d4 (diff) | |
download | nextcloud-server-0f6b1be0e6f0cc6ff97c97190c7da67f5fee0294.tar.gz nextcloud-server-0f6b1be0e6f0cc6ff97c97190c7da67f5fee0294.zip |
Agree on argument type.
Diffstat (limited to 'apps/calendar/lib/calendar.php')
-rw-r--r-- | apps/calendar/lib/calendar.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/calendar/lib/calendar.php b/apps/calendar/lib/calendar.php index 869b35e2e1b..dfd8fe7437b 100644 --- a/apps/calendar/lib/calendar.php +++ b/apps/calendar/lib/calendar.php @@ -44,13 +44,13 @@ class OC_Calendar_Calendar{ /** * @brief Returns the list of calendars for a specific user. * @param string $uid User ID - * @param boolean $active Only return calendars with this $active state, default(=null) is don't care + * @param boolean $active Only return calendars with this $active state, default(=false) is don't care * @return array */ - public static function allCalendars($uid, $active=null){ + public static function allCalendars($uid, $active=false){ $values = array($uid); $active_where = ''; - if (!is_null($active) && $active){ + if ($active === true){ $active_where = ' AND active = ?'; $values[] = $active; } |