cron.php
changeset 945 c19242d13a49
parent 801 eb8b23f11744
child 1081 745200a9cc2a
equal deleted inserted replaced
944:073a42e4177f 945:c19242d13a49
    34   $last_run_threshold = doubleval(time()) - ( 3600.0 * $interval );
    34   $last_run_threshold = doubleval(time()) - ( 3600.0 * $interval );
    35   if ( $last_run_threshold >= $last_run )
    35   if ( $last_run_threshold >= $last_run )
    36   {
    36   {
    37     foreach ( $tasks as $task )
    37     foreach ( $tasks as $task )
    38     {
    38     {
    39       @call_user_func($task);
    39       call_user_func($task);
    40     }
    40     }
    41     setConfig("cron_lastrun_ivl_$interval", strval(time()));
    41     setConfig("cron_lastrun_ivl_$interval", strval(time()));
    42   }
    42   }
    43 }
    43 }
    44 
    44