summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-05 16:07:59 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-05 16:07:59 -0400
commitec030076deaa0ac4f3f4d53a6114e60de2a62ae7 (patch)
treefca27f481b3f1537564e00401569335c8603f1c1
parent6af287f554f030f48fbdfc131c4a21571b54eb8f (diff)
show error correctly in login
darcs-hash:20080605200759-84dde-a1e8cc5c2c6a22da80f03ef692de9d0a8dcb29fc.gz
-rw-r--r--actions/login.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/login.php b/actions/login.php
index c152c8770..3a93c466f 100644
--- a/actions/login.php
+++ b/actions/login.php
@@ -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',