Procházet zdrojové kódy

Merge pull request #4 from fusionpbx/master

14
blackc2004 před 9 roky
rodič
revize
3722e908b8
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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
 	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.
 
 	Contributor(s):
@@ -93,6 +93,7 @@ else {
 	$sql = "select * from v_contact_addresses ";
 	$sql .= "where domain_uuid = '$domain_uuid' ";
 	$sql .= "and contact_uuid = '$contact_uuid_from' ";
+	$sql .= "order by address_primary desc ";
 	$prep_statement = $db->prepare(check_sql($sql));
 	$prep_statement->execute();
 	$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);