Qual: remove $_GET use.

This commit is contained in:
Laurent Destailleur 2024-03-08 19:47:05 +01:00
parent a9cae438a6
commit 65899433fe

View File

@ -69,15 +69,15 @@ if ($type == '0') {
$transAreaType = $langs->trans("ProductsAndServicesArea");
$helpurl = '';
if (!isset($_GET["type"])) {
if (!GETPOSTISSET("type")) {
$transAreaType = $langs->trans("ProductsAndServicesArea");
$helpurl = 'EN:Module_Products|FR:Module_Produits|ES:Módulo_Productos';
}
if ((isset($_GET["type"]) && $_GET["type"] == 0) || !isModEnabled("service")) {
if ((GETPOSTISSET("type") && GETPOST("type") == '0') || !isModEnabled("service")) {
$transAreaType = $langs->trans("ProductsArea");
$helpurl = 'EN:Module_Products|FR:Module_Produits|ES:Módulo_Productos';
}
if ((isset($_GET["type"]) && $_GET["type"] == 1) || !isModEnabled("product")) {
if ((GETPOSTISSET("type") && GETPOST("type") == '1') || !isModEnabled("product")) {
$transAreaType = $langs->trans("ServicesArea");
$helpurl = 'EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios';
}
@ -310,10 +310,10 @@ if ((isModEnabled("product") || isModEnabled("service")) && ($user->hasRight("pr
if ($num > 0) {
$transRecordedType = $langs->trans("LastModifiedProductsAndServices", $max);
if (isset($_GET["type"]) && $_GET["type"] == 0) {
if (GETPOSTISSET("type") && GETPOST("type") == '0') {
$transRecordedType = $langs->trans("LastRecordedProducts", $max);
}
if (isset($_GET["type"]) && $_GET["type"] == 1) {
if (GETPOSTISSET("type") && GETPOST("type") == '1') {
$transRecordedType = $langs->trans("LastRecordedServices", $max);
}