X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Faddressbook.php;h=8fafa44a656a093b1d65dbbdc593e4313235f1fc;hp=ec4f979307fa7d4fbfa256af5837774acffc74b4;hb=703fa6b5750589a850be01a9b934afc4c7e51d63;hpb=04875ae02a9614998d8c1cde217ae57d0c20ea72 diff --git a/src/addressbook.php b/src/addressbook.php index ec4f9793..8fafa44a 100644 --- a/src/addressbook.php +++ b/src/addressbook.php @@ -45,6 +45,9 @@ sqgetGlobalVar('doedit', $doedit, SQ_POST); /* Get sorting order */ $abook_sort_order = get_abook_sort(); +/* Create page header before addressbook_init in order to display error messages correctly. */ +displayPageHeader($color, 'None'); + /* Open addressbook with error messages on. remote backends (LDAP) are enabled because they can be used. (list_addr function) */ @@ -56,7 +59,6 @@ if($abook->localbackend == 0) { exit(); } -displayPageHeader($color, 'None'); $defdata = array(); $formerror = '';