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'] . " ";