Fix navigation

This commit is contained in:
Laurent Destailleur 2020-05-23 20:27:25 +02:00
parent 7bfbf3c88b
commit 024e62a582

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2001-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2020 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2014 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2015 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2018 Ferran Marcet <fmarcet@2byte.es>
@ -502,21 +502,10 @@ if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
}
}
if (empty($search_inventorycode))
{
$sql .= $db->plimit($limit + 1, $offset);
}
else
{
$limit = 0;
}
//print $sql;
$resql = $db->query($sql);
if (!empty($search_inventorycode)) $limit = $db->num_rows($resql);
if ($resql)
{
$product = new Product($db);
@ -952,7 +941,6 @@ if ($resql)
$arrayofuniqueproduct = array();
while ($i < ($limit ? min($num, $limit) : $num)) {
$objp = $db->fetch_object($resql);