Fix var not declared

This commit is contained in:
Laurent Destailleur 2019-11-12 10:17:46 +01:00
parent 3430a88c72
commit f65ce1d5d0
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -38,8 +38,10 @@ class FormSms
*/
public $db;
public $fromid;
public $fromname;
public $fromsms;
public $fromtype;
public $replytoname;
public $replytomail;
public $toname;