]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/login.php
checks for user and sub in validate and better error check in remote save
[quix0rs-gnu-social.git] / actions / login.php
index d25d59cf73c08d034dc010d1f7db220d587c4552..3a93c466facd4ffe6b5707d01033cd4c81f2b6fc 100644 (file)
@@ -60,10 +60,9 @@ 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',