From: Jan Schneider Date: Wed, 14 Oct 2009 13:40:00 +0000 (+0200) Subject: Speed up listing alarms (Request #8638). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b8c03895ec6fb150adbc3f5a2644cac3a6ffc202;p=horde.git Speed up listing alarms (Request #8638). --- diff --git a/kronolith/docs/CHANGES b/kronolith/docs/CHANGES index 3542f8cf4..b4d86a883 100644 --- a/kronolith/docs/CHANGES +++ b/kronolith/docs/CHANGES @@ -24,6 +24,7 @@ v3.0-git v2.3.3-cvs ---------- +[jan] Speed up listing alarms (Request #8638). [jan] Simplify and improve portability of listing events without date limits in the SQL driver (Bug #8590). [mjr] Fix issue that caused the default alarm time to be applied to diff --git a/kronolith/lib/Api.php b/kronolith/lib/Api.php index 7916d01e4..71a593a33 100644 --- a/kronolith/lib/Api.php +++ b/kronolith/lib/Api.php @@ -1131,6 +1131,9 @@ class Kronolith_Api extends Horde_Registry_Api return $alarms; } foreach ($alarms as $calendar => $cal_alarms) { + if (!$cal_alarms) { + continue; + } $share = $GLOBALS['kronolith_shares']->getShare($calendar); if (is_a($share, 'PEAR_Error')) { continue;