Probably the problem with php 4.1 is a register/unregister order. This
[squirrelmail.git] / src / addressbook.php
index 634e5c744106292d8708a51f2fd59148722e3cea..550b430eded0605ccf19e649581caa0a2ad07698 100644 (file)
@@ -16,18 +16,6 @@ require_once('../functions/array.php');
 require_once('../functions/display_messages.php');
 require_once('../functions/addressbook.php');
 
-/* Sort array by the key "name" */
-function alistcmp($a,$b) {
-    if($a['backend'] > $b['backend']) {
-        return 1;
-    } else {
-        if($a['backend'] < $b['backend']) {
-            return -1;
-        }
-    }
-    return (strtolower($a['name']) > strtolower($b['name'])) ? 1 : -1;
-}
-
 /* Make an input field */
 function adressbook_inp_field($label, $field, $name, $size, $values, $add) {
     global $color;
@@ -246,7 +234,7 @@ if($REQUEST_METHOD == 'POST') {
 /* Display error messages */
 if (!empty($formerror)) {
     echo '<TABLE WIDTH=100% COLS=1 ALIGN=CENTER>' . "\n" .
-         '<TR><TD ALIGN=CENTER>\n<br><STRONG>' .
+         '<TR><TD ALIGN=CENTER>' . "\n" . '<br><STRONG>' .
          '<FONT COLOR="' . $color[2]. '">' . _("ERROR") . ': ' . $formerror .
          '</FONT><STRONG>' . "\n</TD></TR>\n</TABLE>\n";
 }