functions.inc.php - gen_show_status()

- do not leave the while loop with break - this could hide some
  undeliverable alias targets from being flagged if another alias
  target points to a domain in $CONF[show_undeliverable_exceptions]
- do not add a blank $CONF[show_status_text] if 
  $CONF[show_undeliverable] is disabled - it only wastes space ;-)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1069 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 13 years ago
parent b6cf638b4e
commit 3330e20b81

@ -2094,7 +2094,6 @@ function gen_show_status ($show_alias) {
if ( $stat_ok == 0 ) {
if ( $stat_domain == $CONF['vacation_domain'] || in_array($stat_domain, $CONF['show_undeliverable_exceptions']) ) {
$stat_ok = 1;
break;
}
}
} // while
@ -2104,10 +2103,7 @@ function gen_show_status ($show_alias) {
} else {
$stat_string .= $CONF['show_status_text'] . " ";
}
} else {
$stat_string .= $CONF['show_status_text'] . " ";
}
}
// POP/IMAP CHECK
if ( $CONF['show_popimap'] == 'YES' ) {

Loading…
Cancel
Save