X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Ferrors.inc;h=1c0f2f97e9108209678d7bd4380afb9c420356f8;hb=8110c7a16ca343e6a48658db2ab95a573e22118f;hp=1a39f1637ce3bffef74fbc61c28e42582ad843f8;hpb=89cb648e9d031fa624e7814f89e90ccba2042124;p=fa-stable.git diff --git a/includes/errors.inc b/includes/errors.inc index 1a39f163..1c0f2f97 100644 --- a/includes/errors.inc +++ b/includes/errors.inc @@ -38,7 +38,7 @@ function fmt_errors($center=false) { $type = E_USER_NOTICE; $content = ''; - $class = 'no_msg'; +// $class = 'no_msg'; if (count($messages)) { foreach($messages as $cnt=>$msg) { if ($msg[0]>$type) continue; @@ -59,11 +59,10 @@ function fmt_errors($center=false) { $content .= ($cnt ? '
' : '').$str; } $class = $msg_class[$type]; + $content = "
$content
"; } else - if ($path_to_root=='.') - return ''; - - $content = "
$content
"; + if ($path_to_root=='.') + return ''; return $content; } //-----------------------------------------------------------------------------