瀏覽代碼

Fix warning

Laurent Destailleur 4 年之前
父節點
當前提交
2e04aa4e03
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/invoices/email_unpaid_invoices_to_customers.php

+ 1 - 1
scripts/invoices/email_unpaid_invoices_to_customers.php

@@ -153,7 +153,7 @@ if ($resql) {
 				if ($targettype == 'contacts') {
 					$oldcid = $obj->cid;
 				}
-				$oldlang = $obj->lang;
+				$oldlang = $obj->default_lang;
 				$oldtarget = (empty($obj->cfirstname) && empty($obj->clastname)) ? $obj->name : ($obj->clastname." ".$obj->cfirstname);
 				$message = '';
 				$total = 0;