FIX check $id is already check before

This commit is contained in:
Regis Houssin 2022-10-13 09:10:22 +02:00
parent 9ec41c1a44
commit 9b37754b85
10 changed files with 18 additions and 28 deletions

View File

@ -258,12 +258,11 @@ if ($id > 0 || !empty($ref)) {
}
$db->free($result);
$option .= '&id='.$product->id;
if ($limit > 0 && $limit != $conf->liste_limit) {
$option .= '&limit='.urlencode($limit);
}
if (!empty($id)) {
$option .= '&id='.$product->id;
}
if (!empty($search_month)) {
$option .= '&search_month='.urlencode($search_month);
}

View File

@ -183,12 +183,11 @@ if ($id > 0 || !empty($ref)) {
if ($result) {
$num = $db->num_rows($result);
$option .= '&id='.$product->id;
if ($limit > 0 && $limit != $conf->liste_limit) {
$option .= '&limit='.urlencode($limit);
}
if (!empty($id)) {
$option .= '&id='.$product->id;
}
if (!empty($search_month)) {
$option .= '&search_month='.urlencode($search_month);
}

View File

@ -184,12 +184,11 @@ if ($id > 0 || !empty($ref)) {
if ($result) {
$num = $db->num_rows($result);
$option .= '&id='.$product->id;
if ($limit > 0 && $limit != $conf->liste_limit) {
$option .= '&limit='.urlencode($limit);
}
if (!empty($id)) {
$option .= '&id='.$product->id;
}
if (!empty($search_month)) {
$option .= '&search_month='.urlencode($search_month);
}

View File

@ -169,12 +169,11 @@ if ($id > 0 || !empty($ref)) {
if ($result) {
$num = $db->num_rows($result);
$option .= '&id='.$product->id;
if ($limit > 0 && $limit != $conf->liste_limit) {
$option .= '&limit='.urlencode($limit);
}
if (!empty($id)) {
$option .= '&id='.$product->id;
}
if (!empty($search_month)) {
$option .= '&search_month='.urlencode($search_month);
}

View File

@ -200,7 +200,6 @@ if ($id > 0 || !empty($ref)) {
if ($result) {
$num = $db->num_rows($result);
// Fetch of product is mandatory
$option .= '&id='.$product->id;
if ($limit > 0 && $limit != $conf->liste_limit) {

View File

@ -183,12 +183,11 @@ if ($id > 0 || !empty($ref)) {
if ($result) {
$num = $db->num_rows($result);
$option .= '&id='.$product->id;
if ($limit > 0 && $limit != $conf->liste_limit) {
$option .= '&limit='.urlencode($limit);
}
if (!empty($id)) {
$option .= '&id='.$product->id;
}
if (!empty($search_month)) {
$option .= '&search_month='.urlencode($search_month);
}

View File

@ -201,12 +201,11 @@ if ($id > 0 || !empty($ref)) {
if ($result) {
$num = $db->num_rows($result);
$option .= '&id='.$product->id;
if ($limit > 0 && $limit != $conf->liste_limit) {
$option .= '&limit='.urlencode($limit);
}
if (!empty($id)) {
$option .= '&id='.$product->id;
}
if (!empty($search_month)) {
$option .= '&search_month='.urlencode($search_month);
}

View File

@ -162,12 +162,11 @@ if ($id > 0 || !empty($ref)) {
if ($result) {
$num = $db->num_rows($result);
$option .= '&id='.$product->id;
if ($limit > 0 && $limit != $conf->liste_limit) {
$option .= '&limit='.urlencode($limit);
}
if (!empty($id)) {
$option .= '&id='.$product->id;
}
if (!empty($search_month)) {
$option .= '&search_month='.urlencode($search_month);
}

View File

@ -185,12 +185,11 @@ if ($id > 0 || !empty($ref)) {
if ($result) {
$num = $db->num_rows($result);
$option .= '&id='.$product->id;
if ($limit > 0 && $limit != $conf->liste_limit) {
$option .= '&limit='.urlencode($limit);
}
if (!empty($id)) {
$option .= '&id='.$product->id;
}
if (!empty($search_month)) {
$option .= '&search_month='.urlencode($search_month);
}

View File

@ -184,12 +184,11 @@ if ($id > 0 || !empty($ref)) {
if ($result) {
$num = $db->num_rows($result);
$option .= '&id='.$product->id;
if ($limit > 0 && $limit != $conf->liste_limit) {
$option .= '&limit='.urlencode($limit);
}
if (!empty($id)) {
$option .= '&id='.$product->id;
}
if (!empty($search_month)) {
$option .= '&search_month='.urlencode($search_month);
}