webadmin: Fix error message on invalid user.

Calling PrintErrorPage twice doesn't work very well.

See #1163
This commit is contained in:
Alexey Sokolov
2016-02-04 23:17:26 +00:00
parent e7dd61c55c
commit 65521d9e43

View File

@@ -1454,7 +1454,7 @@ public:
CUser* pNewUser = GetNewUser(WebSock, pUser);
if (!pNewUser) {
WebSock.PrintErrorPage("Invalid user settings");
// GetNewUser already called WebSock.PrintErrorPage()
return true;
}