Another better fix.

This commit is contained in:
Laurent Destailleur 2012-10-09 11:56:39 +02:00
parent 1725561c34
commit 4413613d14
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ define('DONOTLOADCONF',1); // To avoid loading conf by file inc.php
include 'inc.php';
$action=GETPOST('action','alpha');
$setuplang=(GETPOST('selectlang')?GETPOST('selectlang'):'auto');
$setuplang=(GETPOST('selectlang','',3)?GETPOST('selectlang','',3):'auto');
$langs->setDefaultLang($setuplang);
$langs->load("admin");
@ -409,7 +409,7 @@ if (! $error && $db->connected && $action == "set")
}
// Table prefix
$main_db_prefix = ((! empty($db_prefix) && $db_prefix != '') ? $db_prefix : 'llx_');
$main_db_prefix = (! empty($db_prefix) ? $db_prefix : 'llx_');
// Force https
$main_force_https = ((GETPOST("main_force_https") && (GETPOST("main_force_https") == "on" || GETPOST("main_force_https") == 1)) ? '1' : '0');

View File

@ -82,7 +82,7 @@ if ($resql)
$num = $db->num_rows($resql);
$i = 0;
$param="search_group=".urlencode($search_group)."&sall=".urlencode($sall);
$param="&search_group=".urlencode($search_group)."&sall=".urlencode($sall);
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print_liste_field_titre($langs->trans("Group"),$_SERVER["PHP_SELF"],"g.nom",$param,"","",$sortfield,$sortorder);