瀏覽代碼

Merge pull request #4 from fusionpbx/master

14
blackc2004 9 年之前
父節點
當前提交
3722e908b8
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      invoices/invoice_pdf.php

+ 2 - 1
invoices/invoice_pdf.php

@@ -17,7 +17,7 @@
 
 
 	The Initial Developer of the Original Code is
 	The Initial Developer of the Original Code is
 	Mark J Crane <[email protected]>
 	Mark J Crane <[email protected]>
-	Portions created by the Initial Developer are Copyright (C) 2008-2012
+	Portions created by the Initial Developer are Copyright (C) 2008-2016
 	the Initial Developer. All Rights Reserved.
 	the Initial Developer. All Rights Reserved.
 
 
 	Contributor(s):
 	Contributor(s):
@@ -93,6 +93,7 @@ else {
 	$sql = "select * from v_contact_addresses ";
 	$sql = "select * from v_contact_addresses ";
 	$sql .= "where domain_uuid = '$domain_uuid' ";
 	$sql .= "where domain_uuid = '$domain_uuid' ";
 	$sql .= "and contact_uuid = '$contact_uuid_from' ";
 	$sql .= "and contact_uuid = '$contact_uuid_from' ";
+	$sql .= "order by address_primary desc ";
 	$prep_statement = $db->prepare(check_sql($sql));
 	$prep_statement = $db->prepare(check_sql($sql));
 	$prep_statement->execute();
 	$prep_statement->execute();
 	$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
 	$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);