From: Jan Schneider Date: Thu, 6 Jan 2011 17:45:30 +0000 (+0100) Subject: Only show calendars in f/b preference that are supposed to be displayed. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=08790e508c577de80bfbba2b4e6dc8c33846956e;p=horde.git Only show calendars in f/b preference that are supposed to be displayed. --- diff --git a/kronolith/lib/Application.php b/kronolith/lib/Application.php index 6ae73d677..249e355c1 100644 --- a/kronolith/lib/Application.php +++ b/kronolith/lib/Application.php @@ -187,7 +187,9 @@ class Kronolith_Application extends Horde_Registry_Application if (!$prefs->isLocked('fb_cals')) { $fb_list = array(); foreach (Kronolith::listCalendars() as $fb_cal => $cal) { - $fb_list[htmlspecialchars($fb_cal)] = htmlspecialchars($cal->name()); + if ($cal->display()) { + $fb_list[htmlspecialchars($fb_cal)] = htmlspecialchars($cal->name()); + } } $ui->override['fb_cals'] = $fb_list; }