From 703fa6b5750589a850be01a9b934afc4c7e51d63 Mon Sep 17 00:00:00 2001 From: tokul Date: Wed, 9 Feb 2005 16:52:56 +0000 Subject: [PATCH 1/1] 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 --- src/addressbook.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = ''; -- 2.25.1