FsPages laisse la place à Gitlab Pages ! Voici la documentation pour vous en servir : https://docs.gitlab.com/ce/user/project/pages/index.html

Commit 3bfd93e8 by Denis Chenu

[fix] Error when saving token log

1 parent a675c044
Showing with 10 additions and 3 deletions
......@@ -803,19 +803,26 @@ class sendMailCron extends \ls\pluginmanager\PluginBase
if(!$this->simulate){
if($sType=='invite'){
$oToken->sent=dateShift(date("Y-m-d H:i:s"), "Y-m-d H:i", Yii::app()->getConfig("timeadjust"));
$txtLog="sent set to ".$oToken->sent;
}
if($sType=='remind'){
$oToken->remindersent=dateShift(date("Y-m-d H:i:s"), "Y-m-d H:i", Yii::app()->getConfig("timeadjust"));
$oToken->remindercount++;
$txtLog="remindersent set to ".$oToken->remindersent." count:".$oToken->remindercount;
}
if($oToken->save()) {
$this->sendMailCronLog("Email {$oToken->email} : $txtLog",3);
} else {
$error=CVarDumper::dumpAsString($oToken->getErrors(), 3, false);
$this->sendMailCronLog("Email {$oToken->email} error: $error");
}
$oToken->save();
}
}else{
$sTo=implode(";",$aTo);
if($maildebug){
$this->sendMailCronLog("Unknow error when send email to {$sTo} ({$iSurvey}) : ".$maildebug);
$this->sendMailCronLog("Unknow error when send email to {$oToken->email} ({$iSurvey}) : ".$maildebug);
}else{
$this->sendMailCronLog("Unknow error when send email to {$sTo} ({$iSurvey})");
$this->sendMailCronLog("Unknow error when send email to {$oToken->email} ({$iSurvey})");
}
$aCountMail['error']++;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!