Index: htdocs/sites/all/modules/poormanscron/poormanscron.module =================================================================== --- htdocs/sites/all/modules/poormanscron/poormanscron.module (revision 73) +++ htdocs/sites/all/modules/poormanscron/poormanscron.module (working copy) @@ -32,12 +32,14 @@ $lastrun = variable_get('poormanscron_lastrun', 0); $nextrun = $lastrun + 60 * variable_get('poormanscron_interval', 60); + $t = time(); + // If the configured time has passed, start the next poormanscron run. - if (time() > $nextrun) { + if ($t > $nextrun) { // If this cron run fails to complete, wait a few minutes before retrying. variable_set('poormanscron_lastrun', - $lastrun + 60 * variable_get('poormanscron_retry_interval', 10)); + $t + 60 * variable_get('poormanscron_retry_interval', 10)); // Get the current Drupal messages. Use drupal_set_message() so that // the messages aren't deleted in case the cron run fails and