$last = get_config('system','last_cron');
$poll_interval = intval(get_config('system','cron_interval'));
- if(! $poll_interval)
+ if (! $poll_interval) {
$poll_interval = 10;
-
- if($last) {
+ }
+ if ($last) {
$next = $last + ($poll_interval * 60);
- if ($next > time()) {
+ if($next > time()) {
logger('cron intervall not reached');
return;
}
$d1 = get_config('system','last_expire_day');
$d2 = intval(datetime_convert('UTC','UTC','now','d'));
- if ($d2 != intval($d1)) {
+ if($d2 != intval($d1)) {
- update_contact_birthdays();
+ proc_run(PRIORITY_LOW, "include/cronjobs.php", "update_contact_birthdays");
proc_run(PRIORITY_LOW, "include/discover_poco.php", "update_server");