From 0f6b1be0e6f0cc6ff97c97190c7da67f5fee0294 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Fri, 15 Jun 2012 00:50:42 +0200 Subject: Agree on argument type. --- apps/calendar/lib/calendar.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/calendar/lib/calendar.php') 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; } -- cgit v1.2.3