]> git.wh0rd.org Git - tt-rss.git/commitdiff
user editor no longer sets login of current user to blank string on entry save
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 22 Jan 2009 13:30:29 +0000 (14:30 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 22 Jan 2009 13:30:29 +0000 (14:30 +0100)
modules/pref-users.php

index 392e596ab9f14eeb340d90d0a4cc58562873bd94..121e5b3b9a6110b945f248e5ee02ba99a199e40d 100644 (file)
 
                        print "<input size=\"30\" style=\"font-size : 16px\" 
                                onkeypress=\"return filterCR(event, userEditSave)\" $sel_disabled
-                               name=\"login\" value=\"$login\">";
+                               value=\"$login\">";
+
+                       if ($sel_disabled) {
+                               print "<input type=\"hidden\" name=\"login\" value=\"$login\">";
+                       }
 
                        print "</div>";