From f65ce1d5d0a2b60c907ee9abce12b49437d6ac27 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Nov 2019 10:17:46 +0100 Subject: [PATCH] Fix var not declared --- htdocs/admin/sms.php | 3 --- htdocs/core/class/html.formsms.class.php | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/admin/sms.php b/htdocs/admin/sms.php index 5536424e939..ce4161ea147 100644 --- a/htdocs/admin/sms.php +++ b/htdocs/admin/sms.php @@ -309,13 +309,10 @@ else $formsms->withfromreadonly=0; $formsms->withsubstit=0; $formsms->withfrom=1; - $formsms->witherrorsto=1; $formsms->withto=(isset($_POST['sendto'])?$_POST['sendto']:$user->user_mobile?$user->user_mobile:1); - $formsms->withfile=2; $formsms->withbody=(isset($_POST['message'])?(empty($_POST['message'])?1:$_POST['message']):$langs->trans("ThisIsATestMessage")); $formsms->withbodyreadonly=0; $formsms->withcancel=1; - $formsms->withfckeditor=0; // Tableau des substitutions $formsms->substit=$substitutionarrayfortest; // Tableau des parametres complementaires du post diff --git a/htdocs/core/class/html.formsms.class.php b/htdocs/core/class/html.formsms.class.php index 78ecefb87e0..3b949814691 100644 --- a/htdocs/core/class/html.formsms.class.php +++ b/htdocs/core/class/html.formsms.class.php @@ -38,8 +38,10 @@ class FormSms */ public $db; + public $fromid; public $fromname; public $fromsms; + public $fromtype; public $replytoname; public $replytomail; public $toname;