mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +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)
|
private function delete_alarms($cal_id)
|
||||||
{
|
{
|
||||||
//error_log(__METHOD__."($cal_id) ".function_backtrace());
|
//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)
|
foreach($alarms as $id => $alarm)
|
||||||
{
|
{
|
||||||
$this->async->cancel_timer($id);
|
$this->async->cancel_timer($id);
|
||||||
}
|
}
|
||||||
// update cache, if used
|
// update cache, if used
|
||||||
if (isset(self::$alarm_cache)) $this->read_alarms($cal_id, false);
|
if (isset(self::$alarm_cache)) $this->read_alarms($cal_id, false);
|
||||||
|
}
|
||||||
return count($alarms);
|
return count($alarms);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user