Added experimental ip check.
[squirrelmail.git] / src / addrbook_search_html.php
index a1604e6de2da0a84338d10846d0b471601d7c65f..51d2b538e77d27c168dfe862c3e325363fa9f9a9 100644 (file)
@@ -111,7 +111,7 @@ $abook = addressbook_init();
 ?>
 
 <br>
-<table width=95% align=center cellpadding=2 cellspacing=2 border=0>
+<table width="95%" align=center cellpadding=2 cellspacing=2 border=0>
 <tr><td bgcolor="<?php echo $color[0] ?>">
    <center><b><?php echo _("Address Book Search") ?></b></center>
 </td></tr></table>
@@ -168,6 +168,7 @@ if ($addrquery == '' || !empty($listall)) {
         $res = $abook->list_addr($backend);
 
         if (is_array($res)) {
+            usort($res,'alistcmp');
             addr_display_result($res, false);
         } else {
             echo '<P ALIGN=center><STRONG>' .
@@ -178,6 +179,7 @@ if ($addrquery == '' || !empty($listall)) {
 
     } else {
         $res = $abook->list_addr();
+        usort($res,'alistcmp');
         addr_display_result($res, true);
     }
     exit;