FIX avoid error, fetch of product is mandatory (by id or by ref)
This commit is contained in:
parent
92c807d0df
commit
9ec41c1a44
@ -200,12 +200,12 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
if ($result) {
|
if ($result) {
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
|
|
||||||
|
// Fetch of product is mandatory
|
||||||
|
$option .= '&id='.$product->id;
|
||||||
|
|
||||||
if ($limit > 0 && $limit != $conf->liste_limit) {
|
if ($limit > 0 && $limit != $conf->liste_limit) {
|
||||||
$option .= '&limit='.urlencode($limit);
|
$option .= '&limit='.urlencode($limit);
|
||||||
}
|
}
|
||||||
if (!empty($id)) {
|
|
||||||
$option .= '&id='.$product->id;
|
|
||||||
}
|
|
||||||
if (!empty($search_month)) {
|
if (!empty($search_month)) {
|
||||||
$option .= '&search_month='.urlencode($search_month);
|
$option .= '&search_month='.urlencode($search_month);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user