diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-07-20 05:38:19 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-07-20 05:38:19 -0400 |
commit | 99f7dd0fd42b4e29715c86062691877653a8b022 (patch) | |
tree | d6bf1cdad168d21947e4b5971c5bdfcc6cf99cca /boot.php | |
parent | 0c7ad924a846eef183ca442be837b69a6014075a (diff) | |
parent | 9421e42dad0bee6e0aa292d390cf249e1d7f7df4 (diff) | |
download | volse-hubzilla-99f7dd0fd42b4e29715c86062691877653a8b022.tar.gz volse-hubzilla-99f7dd0fd42b4e29715c86062691877653a8b022.tar.bz2 volse-hubzilla-99f7dd0fd42b4e29715c86062691877653a8b022.zip |
Merge remote-tracking branch 'upstream/dev' into website-import
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -44,7 +44,7 @@ require_once('include/account.php'); define ( 'PLATFORM_NAME', 'hubzilla' ); -define ( 'STD_VERSION', '1.9.1' ); +define ( 'STD_VERSION', '1.11' ); define ( 'ZOT_REVISION', '1.1' ); define ( 'DB_UPDATE_VERSION', 1180 ); @@ -2457,24 +2457,16 @@ function check_cron_broken() { set_config('system','lastcroncheck',datetime_convert()); return; } - $t = get_config('system','lastcroncheck'); - if($t === false) { - // This is serious. Config storage isn't working. - // We just set lastcroncheck. The system is horked. - // However don't add insult to injury by sending an email - // to the admin every time a page is accessed. - // just quietly - return; - } if($t > datetime_convert('UTC','UTC','now - 3 days')) { // Wait for 3 days before we do anything so as not to swamp the admin with messages return; } + set_config('system','lastcroncheck',datetime_convert()); + if(($d) && ($d > datetime_convert('UTC','UTC','now - 3 days'))) { // Scheduled tasks have run successfully in the last 3 days. - set_config('system','lastcroncheck',datetime_convert()); return; } |