Fixed boolean comparison.
Don't compare booleans to false / true, use them directly. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1048 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -196,7 +196,7 @@ void cWebAdmin::Request_Handler(webserver::http_request* r)
|
||||
cWebPlugin* WebPlugin = *itr;
|
||||
FoundPlugin = WebPlugin->GetName();
|
||||
AString TabName = WebPlugin->GetTabNameForRequest( &Request ).first;
|
||||
if( TabName.empty() == false )
|
||||
if (!TabName.empty())
|
||||
{
|
||||
FoundPlugin += " - " + TabName;
|
||||
}
|
||||
@@ -239,7 +239,7 @@ void cWebAdmin::Request_Handler(webserver::http_request* r)
|
||||
|
||||
|
||||
|
||||
if (bDontShowTemplate == false && Split.size() > 1)
|
||||
if (!bDontShowTemplate && (Split.size() > 1))
|
||||
{
|
||||
Content += "\n<p><a href='" + BaseURL + "'>Go back</a></p>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user