mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
fixed warning reported by Anthony Messina on developers list
This commit is contained in:
parent
dc46ebed05
commit
550daca48f
@ -1973,15 +1973,15 @@ ORDER BY cal_user_type, cal_usre_id
|
||||
private function delete_alarms($cal_id)
|
||||
{
|
||||
//error_log(__METHOD__."($cal_id) ".function_backtrace());
|
||||
$alarms = $this->read_alarms($cal_id);
|
||||
|
||||
if (($alarms = $this->read_alarms($cal_id)))
|
||||
{
|
||||
foreach($alarms as $id => $alarm)
|
||||
{
|
||||
$this->async->cancel_timer($id);
|
||||
}
|
||||
// update cache, if used
|
||||
if (isset(self::$alarm_cache)) $this->read_alarms($cal_id, false);
|
||||
|
||||
}
|
||||
return count($alarms);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user