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
postfixadmin-2.3
Greg 17 years ago
parent 815e3ebef6
commit 9f7d4f14e9

@ -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 .= "<span style='background-color:" . $CONF['show_popimap_color'] .
"'>" . $CONF['show_status_text'] . "</span>&nbsp;";

Loading…
Cancel
Save