From: tokul Date: Wed, 9 Feb 2005 16:52:56 +0000 (+0000) Subject: Create page header before addressbook_init in order to display error X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=703fa6b5750589a850be01a9b934afc4c7e51d63;p=squirrelmail.git Create page header before addressbook_init in order to display error messages correctly. Maybe error_box() should use table that is not with width=100% git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8833 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- 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 = '';