From 22b224744282b23bffdf2c7f1ec3006fbcd74d36 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Sat, 19 Dec 2020 13:41:49 +0100 Subject: [PATCH] Update sms.php --- htdocs/admin/sms.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/sms.php b/htdocs/admin/sms.php index 09cc0debfd5..d06b99691f5 100644 --- a/htdocs/admin/sms.php +++ b/htdocs/admin/sms.php @@ -310,7 +310,7 @@ else $formsms->withfromreadonly = 0; $formsms->withsubstit = 0; $formsms->withfrom = 1; - $formsms->withto = (isset($_POST['sendto']) ? $_POST['sendto'] : $user->user_mobile ? $user->user_mobile : 1); + $formsms->withto = (isset($_POST['sendto']) ? $_POST['sendto'] : ($user->user_mobile ? $user->user_mobile : 1)); $formsms->withbody = (isset($_POST['message']) ? (empty($_POST['message']) ? 1 : $_POST['message']) : $langs->trans("ThisIsATestMessage")); $formsms->withbodyreadonly = 0; $formsms->withcancel = 1;