From 9f7d4f14e96105d0e297534dd3685d50963660c2 Mon Sep 17 00:00:00 2001 From: Greg Date: Fri, 7 Mar 2008 18:38:22 +0000 Subject: [PATCH] simplification and (hopefully) bug free fix for POP/IMAP box marking git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@310 a1433add-5e2c-0410-b055-b7f2511e0802 --- functions.inc.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/functions.inc.php b/functions.inc.php index 6b4f0af3..af4789a1 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -1984,9 +1984,7 @@ function gen_show_status ($show_alias) if ( $CONF['show_popimap'] == 'YES' ) { //if the address passed in appears in its own goto field, its POP/IMAP - if (preg_match ('/^' . $show_alias . '$/', $stat_goto) || - preg_match ('/' . $show_alias . ',/', $stat_goto) || - preg_match ('/,' . $show_alias . '$/', $stat_goto) ) + if ( preg_match ('/,' . $show_alias . ',/', ',' . $stat_goto . ',') ) { $stat_string .= "" . $CONF['show_status_text'] . " ";