commit
4ef832b94b
@ -124,10 +124,12 @@ if ($action == 'send' && ! $_POST['cancel'])
|
|||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
setEventMessages($langs->trans("SmsSuccessfulySent",$smsfrom,$sendto), null, 'mesgs');
|
setEventMessages($langs->trans("SmsSuccessfulySent",$smsfrom,$sendto), null, 'mesgs');
|
||||||
|
setEventMessages($smsfile->error, $smsfile->errors, 'mesgs');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
setEventMessages($langs->trans("ResultKo"), null, 'errors');
|
setEventMessages($langs->trans("ResultKo"), null, 'errors');
|
||||||
|
setEventMessages($smsfile->error, $smsfile->errors, 'errors');
|
||||||
}
|
}
|
||||||
|
|
||||||
$action='';
|
$action='';
|
||||||
|
|||||||
@ -149,9 +149,10 @@ class CSMSFile
|
|||||||
$sms->message=$this->message;
|
$sms->message=$this->message;
|
||||||
|
|
||||||
$res=$sms->SmsSend();
|
$res=$sms->SmsSend();
|
||||||
|
$this->error = $sms->error;
|
||||||
|
$this->errors = $sms->errors;
|
||||||
if ($res <= 0)
|
if ($res <= 0)
|
||||||
{
|
{
|
||||||
$this->error=$sms->error;
|
|
||||||
dol_syslog("CSMSFile::sendfile: sms send error=".$this->error, LOG_ERR);
|
dol_syslog("CSMSFile::sendfile: sms send error=".$this->error, LOG_ERR);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user