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:
7
cron.php
7
cron.php
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user