forked from extern/egroupware
"commented permanent error_log in async_notifications, as it creates mail to root when async service is run via cron"
This commit is contained in:
parent
4515b1fec0
commit
6eab77b15f
@ -1180,7 +1180,7 @@ class infolog_bo
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
error_log("boinfolog::async_notification() users with open entries: ".implode(', ',$users));
|
//error_log(__METHOD__."() users with open entries: ".implode(', ',$users));
|
||||||
|
|
||||||
$save_account_id = $GLOBALS['egw_info']['user']['account_id'];
|
$save_account_id = $GLOBALS['egw_info']['user']['account_id'];
|
||||||
$save_prefs = $GLOBALS['egw_info']['user']['preferences'];
|
$save_prefs = $GLOBALS['egw_info']['user']['preferences'];
|
||||||
@ -1207,7 +1207,7 @@ class infolog_bo
|
|||||||
if (!($pref_value = $GLOBALS['egw_info']['user']['preferences']['infolog'][$pref])) continue;
|
if (!($pref_value = $GLOBALS['egw_info']['user']['preferences']['infolog'][$pref])) continue;
|
||||||
|
|
||||||
$filter .= date('Y-m-d',time()+24*60*60*(int)$pref_value);
|
$filter .= date('Y-m-d',time()+24*60*60*(int)$pref_value);
|
||||||
error_log("boinfolog::async_notification() checking with filter '$filter' ($pref_value) for user $user ($email)");
|
//error_log(__METHOD__."() checking with filter '$filter' ($pref_value) for user $user ($email)");
|
||||||
|
|
||||||
$params = array('filter' => $filter);
|
$params = array('filter' => $filter);
|
||||||
foreach($this->so->search($params) as $info)
|
foreach($this->so->search($params) as $info)
|
||||||
@ -1239,7 +1239,7 @@ class infolog_bo
|
|||||||
$this->tracking->datetime($info['info_startdate']-$this->tz_offset_s,null));
|
$this->tracking->datetime($info['info_startdate']-$this->tz_offset_s,null));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
error_log("notifiying $user($email) about $info[info_subject]: $info[message]");
|
//error_log("notifiying $user($email) about $info[info_subject]: $info[message]");
|
||||||
$this->tracking->send_notification($info,null,$email,$user,$pref);
|
$this->tracking->send_notification($info,null,$email,$user,$pref);
|
||||||
|
|
||||||
$notified_info_ids[] = $info['info_id'];
|
$notified_info_ids[] = $info['info_id'];
|
||||||
|
Loading…
Reference in New Issue
Block a user