Fix for empty language descriptions with skip_english_translations
authorKevin Yeh <kevinyeh@alum.mit.edu>
Tue, 9 Apr 2013 17:38:10 +0000 (9 13:38 -0400)
committerKevin Yeh <kevinyeh@alum.mit.edu>
Tue, 9 Apr 2013 17:38:10 +0000 (9 13:38 -0400)
interface/login/login.php

index 3bbadee..0abe584 100644 (file)
@@ -95,7 +95,7 @@ if ($GLOBALS['language_menu_login']) {
         $mainLangID = empty($_SESSION['language_choice']) ? '1' : $_SESSION['language_choice'];
         if ($mainLangID == '1' && !empty($GLOBALS['skip_english_translation']))
         {
-          $sql = "SELECT * FROM lang_languages ORDER BY lang_description, lang_id";
+          $sql = "SELECT *,lang_description as trans_lang_description FROM lang_languages ORDER BY lang_description, lang_id";
          $res3=SqlStatement($sql);
         }
         else {