If the user hasn't selected there langague preference, it will now pre-select english

This commit is contained in:
jengo 2000-11-18 00:17:17 +00:00
parent c92f0fd57b
commit f63c9f36fa

View File

@ -97,6 +97,9 @@
<td>
<select name="lang">
<?php
if (! $phpgw_info["user"]["preferences"]["common"]["lang"]) {
$phpgw_info["user"]["preferences"]["common"]["lang"] = "en";
}
$lang_select[$phpgw_info["user"]["preferences"]["common"]["lang"]] = " selected";
$strSql = "SELECT lang_id, lang_name FROM languages WHERE available = 'Yes'";
$phpgw->db->query($strSql);