Răsfoiți Sursa

#1791 sendMailTemplate func - incorrect usage of $iAccountId param

Alex Trofimov 8 ani în urmă
părinte
comite
0c7b9796ad
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      inc/utils.inc.php

+ 1 - 1
inc/utils.inc.php

@@ -290,7 +290,7 @@ function sendMailTemplate($sTemplateName, $iAccountId = 0, $iProfileId = 0, $aRe
     if (!$oAccount || !$oProfile || !$oEmailTemplates)
         return false;
 
-    $aTemplate = $oEmailTemplates->parseTemplate($sTemplateName, $aReplaceVars, $iAccountId, (int)$iProfileId);
+    $aTemplate = $oEmailTemplates->parseTemplate($sTemplateName, $aReplaceVars, $oAccount ? $oAccount->id() : 0, (int)$iProfileId);
     if (!$aTemplate)
         return false;