From 533d86247069bc81822aa8b2d79ba6b2afee0cf0 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 6 Apr 2012 08:34:33 +0200 Subject: [PATCH] Fix: wrong var name and multi-line function call not indented correctly --- htdocs/comm/mailing/fiche.php | 92 +++++++++++++++++------------------ 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/htdocs/comm/mailing/fiche.php b/htdocs/comm/mailing/fiche.php index 1e1a65b838e..5f02441159c 100644 --- a/htdocs/comm/mailing/fiche.php +++ b/htdocs/comm/mailing/fiche.php @@ -45,50 +45,50 @@ $object=new Mailing($db); // Tableau des substitutions possibles $substitutionarray=array( -'__ID__' => 'IdRecord', -'__EMAIL__' => 'EMail', -'__LASTNAME__' => 'Lastname', -'__FIRSTNAME__' => 'Firstname', -'__OTHER1__' => 'Other1', -'__OTHER2__' => 'Other2', -'__OTHER3__' => 'Other3', -'__OTHER4__' => 'Other4', -'__OTHER5__' => 'Other5', -'__SIGNATURE__' => 'Signature', -'__PERSONALIZED__' => 'Personalized' + '__ID__' => 'IdRecord', + '__EMAIL__' => 'EMail', + '__LASTNAME__' => 'Lastname', + '__FIRSTNAME__' => 'Firstname', + '__OTHER1__' => 'Other1', + '__OTHER2__' => 'Other2', + '__OTHER3__' => 'Other3', + '__OTHER4__' => 'Other4', + '__OTHER5__' => 'Other5', + '__SIGNATURE__' => 'Signature', + '__PERSONALIZED__' => 'Personalized' ); if ($conf->global->MAIN_SOCIETE_UNSUBSCRIBE) { - $substitutionarray=array_merge( - $substitutionarray, - array( - '__CHECK_READ__' => 'CheckMail', - '__UNSUSCRIBE__' => 'Unsuscribe' - ) - ); + $substitutionarray=array_merge( + $substitutionarray, + array( + '__CHECK_READ__' => 'CheckMail', + '__UNSUSCRIBE__' => 'Unsuscribe' + ) + ); } $substitutionarrayfortest=array( -'__ID__' => 'TESTIdRecord', -'__EMAIL__' => 'TESTEMail', -'__LASTNAME__' => 'TESTLastname', -'__FIRSTNAME__' => 'TESTFirstname', -'__OTHER1__' => 'TESTOther1', -'__OTHER2__' => 'TESTOther2', -'__OTHER3__' => 'TESTOther3', -'__OTHER4__' => 'TESTOther4', -'__OTHER5__' => 'TESTOther5', -'__SIGNATURE__' => 'TESTSignature', -'__PERSONALIZED__' => 'TESTPersonalized' + '__ID__' => 'TESTIdRecord', + '__EMAIL__' => 'TESTEMail', + '__LASTNAME__' => 'TESTLastname', + '__FIRSTNAME__' => 'TESTFirstname', + '__OTHER1__' => 'TESTOther1', + '__OTHER2__' => 'TESTOther2', + '__OTHER3__' => 'TESTOther3', + '__OTHER4__' => 'TESTOther4', + '__OTHER5__' => 'TESTOther5', + '__SIGNATURE__' => 'TESTSignature', + '__PERSONALIZED__' => 'TESTPersonalized' ); if ($conf->global->MAIN_SOCIETE_UNSUBSCRIBE) { - $substitutionarray=array_merge( - $substitutionarray, - array( - '__CHECK_READ__' => 'TESTCheckMail', - '__UNSUSCRIBE__' => 'TESTCheckMail' - ) + $substitutionarrayfortest=array_merge( + $substitutionarrayfortest, + array( + '__CHECK_READ__' => 'TESTCheckMail', + '__UNSUSCRIBE__' => 'TESTCheckMail' + ) ); } @@ -206,17 +206,17 @@ if ($action == 'sendallconfirmed' && $confirm == 'yes') $tmpfield=explode('=',$other[3],2); $other4=(isset($tmpfield[1])?$tmpfield[1]:$tmpfield[0]); $tmpfield=explode('=',$other[4],2); $other5=(isset($tmpfield[1])?$tmpfield[1]:$tmpfield[0]); $substitutionarray=array( - '__ID__' => $obj->source_id, - '__EMAIL__' => $obj->email, - '__CHECK_READ__' => '', - '__UNSUSCRIBE__' => ''.$langs->trans("MailUnsubcribe").'', - '__LASTNAME__' => $obj->nom, - '__FIRSTNAME__' => $obj->prenom, - '__OTHER1__' => $other1, - '__OTHER2__' => $other2, - '__OTHER3__' => $other3, - '__OTHER4__' => $other4, - '__OTHER5__' => $other5 + '__ID__' => $obj->source_id, + '__EMAIL__' => $obj->email, + '__CHECK_READ__' => '', + '__UNSUSCRIBE__' => ''.$langs->trans("MailUnsubcribe").'', + '__LASTNAME__' => $obj->nom, + '__FIRSTNAME__' => $obj->prenom, + '__OTHER1__' => $other1, + '__OTHER2__' => $other2, + '__OTHER3__' => $other3, + '__OTHER4__' => $other4, + '__OTHER5__' => $other5 ); $substitutionisok=true;