FIX check $id is already check before
This commit is contained in:
parent
9ec41c1a44
commit
9b37754b85
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user