show error correctly in login

darcs-hash:20080605200759-84dde-a1e8cc5c2c6a22da80f03ef692de9d0a8dcb29fc.gz
This commit is contained in:
Evan Prodromou 2008-06-05 16:07:59 -04:00
parent 6af287f554
commit ec030076de
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ class LoginAction extends Action {
function show_form($error=NULL) {
common_show_header(_t('Login'));
if (!is_null($error)) {
common_element('div', array('class' => 'error'), $msg);
if ($error) {
common_element('div', array('class' => 'error'), $error);
}
common_element_start('form', array('method' => 'POST',
'id' => 'login',