Fixed: Wrong comparison

This commit is contained in:
kervala 2015-11-09 12:48:07 +01:00
parent 9e3db2029d
commit 45fb738e8a

View file

@ -1919,7 +1919,7 @@ class CAHOpenURL : public IActionHandler
if (pos_lang != string::npos) if (pos_lang != string::npos)
pos_lang = url.find("=en#"); pos_lang = url.find("=en#");
if (pos_lang != string::npos) if (pos_lang == string::npos)
url.replace(pos_lang + 1, 2, ClientCfg.getHtmlLanguageCode()); url.replace(pos_lang + 1, 2, ClientCfg.getHtmlLanguageCode());
// append language // append language