]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
show error correctly in login
authorEvan Prodromou <evan@prodromou.name>
Thu, 5 Jun 2008 20:07:59 +0000 (16:07 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 5 Jun 2008 20:07:59 +0000 (16:07 -0400)
darcs-hash:20080605200759-84dde-a1e8cc5c2c6a22da80f03ef692de9d0a8dcb29fc.gz

actions/login.php

index c152c87707bf504df3806e242cbd841010bd30fb..3a93c466facd4ffe6b5707d01033cd4c81f2b6fc 100644 (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',