1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 07:06:30 +02:00

Issue #1810 - Reduce occurrence of cron configuration email.

This commit is contained in:
Cameron
2016-08-31 10:44:12 -07:00
parent eecbfbd61d
commit 815b1c1153

View File

@@ -41,7 +41,10 @@ require_once(realpath(dirname(__FILE__)."/class2.php"));
$pwd = str_replace('token=','',$pwd);
}
if($pref['e_cron_pwd'] != $pwd)
if(($pref['e_cron_pwd'] != $pwd) || empty($pref['e_cron_pwd']))
{
if(!empty($pwd))
{
require_once(e_HANDLER."mail.php");
@@ -61,6 +64,8 @@ require_once(realpath(dirname(__FILE__)."/class2.php"));
$message .= print_a($_GET,true);
sendemail($pref['siteadminemail'], "e107 - Cron Schedule Misconfigured.", $message, $pref['siteadmin'],$pref['siteadminemail'], $pref['siteadmin']);
}
exit;
}