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

View File

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