From 6dda64534206bf0aa35c57e826605573809176e7 Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 20 Mar 2005 10:13:01 +0000 Subject: [PATCH] script creates two frames. there is no need to display same error in both. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9084 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/addrbook_search.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/addrbook_search.php b/src/addrbook_search.php index e7947ab7..a1c0b7be 100644 --- a/src/addrbook_search.php +++ b/src/addrbook_search.php @@ -205,8 +205,9 @@ if (empty($query) && empty($show) && empty($listall)) { exit; } -/* Initialize addressbook */ -$abook = addressbook_init(); +/* Initialize addressbook, show init errors only in bottom frame */ +$showerr=($show=='form' ? false : true); +$abook = addressbook_init($showerr); /* Create search form */ if ($show == 'form' && empty($listall)) { -- 2.25.1