From 65cebe37f36b5fe4de628f193840d0c774a97346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 13 Dec 2015 21:12:08 +0100 Subject: [PATCH 1/2] Update sms.php --- htdocs/admin/sms.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/admin/sms.php b/htdocs/admin/sms.php index 604b426b800..05fe548daff 100644 --- a/htdocs/admin/sms.php +++ b/htdocs/admin/sms.php @@ -124,10 +124,12 @@ if ($action == 'send' && ! $_POST['cancel']) if ($result) { setEventMessages($langs->trans("SmsSuccessfulySent",$smsfrom,$sendto), null, 'mesgs'); + setEventMessages($smsfile->error, $smsfile->errors, 'mesgs'); } else { setEventMessages($langs->trans("ResultKo"), null, 'errors'); + setEventMessages($smsfile->error, $smsfile->errors, 'errors'); } $action=''; From 1aa232c4a7f8d34aaf31da2e5e48026aaa3d945b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 13 Dec 2015 21:14:53 +0100 Subject: [PATCH 2/2] Update CSMSFile.class.php --- htdocs/core/class/CSMSFile.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/CSMSFile.class.php b/htdocs/core/class/CSMSFile.class.php index b6819fdd87f..4456df76f83 100644 --- a/htdocs/core/class/CSMSFile.class.php +++ b/htdocs/core/class/CSMSFile.class.php @@ -149,9 +149,10 @@ class CSMSFile $sms->message=$this->message; $res=$sms->SmsSend(); + $this->error = $sms->error; + $this->errors = $sms->errors; if ($res <= 0) { - $this->error=$sms->error; dol_syslog("CSMSFile::sendfile: sms send error=".$this->error, LOG_ERR); } else