show error correctly in login
darcs-hash:20080605200759-84dde-a1e8cc5c2c6a22da80f03ef692de9d0a8dcb29fc.gz
This commit is contained in:
parent
6af287f554
commit
ec030076de
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user