diff options
author | Thomas Bruederli <bruederli@kolabsys.com> | 2014-10-14 21:47:15 +0200 |
---|---|---|
committer | Thomas Bruederli <bruederli@kolabsys.com> | 2014-10-14 21:47:15 +0200 |
commit | c45507e317bfc5310005d651a3818b2669541fba (patch) | |
tree | 18e357caeb39e6be0194296f3d8fd406079496d6 | |
parent | b51de3279f579f53069a1aee49686102bce81166 (diff) |
Fix login error message display broken in b51de327
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -157,7 +157,7 @@ if ($RCMAIL->task == 'login' && $RCMAIL->action == 'login') { RCMAIL::ERROR_INVALID_HOST => 'invalidhost', ); - $error_message = !is_numeric($auth['error']) ? $auth['error'] : ($error_labels[$error_code] ?: 'loginfailed'); + $error_message = !empty($auth['error']) && !is_numeric($auth['error']) ? $auth['error'] : ($error_labels[$error_code] ?: 'loginfailed'); $OUTPUT->show_message($error_message, 'warning'); |