From 766ad164825f9850ccb0ab19afeff42c48395b2d Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 5 Feb 2006 09:07:52 +0000 Subject: [PATCH] rearranged if structures in order to reach footer without extra template code git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10640 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/addrbook_search.php | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/addrbook_search.php b/src/addrbook_search.php index b26dfc53..33d91093 100644 --- a/src/addrbook_search.php +++ b/src/addrbook_search.php @@ -289,20 +289,14 @@ if ($show == 'form' && ! isset($listall)) { echo html_tag( 'p', '
' . _("Your search failed with the following error(s)") . ':
' . $abook->error . "
\n" , - 'center' ) . - "\n\n"; - exit; - } - - if (sizeof($res) == 0) { + 'center' ); + } elseif (sizeof($res) == 0) { echo html_tag( 'p', '
' . _("No persons matching your search were found") . "\n" , - 'center' ) . - "\n\n"; - exit; + 'center' ); + } else { + display_result($res); } - - display_result($res); } else { /** * listall is not set, query is not set or empty. -- 2.25.1