mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Utilise isset dans load_next_ref
This commit is contained in:
parent
904ff0170f
commit
43371ebb2c
|
|
@ -945,7 +945,7 @@ class Product
|
|||
$sql = "SELECT MAX(ref)";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."product";
|
||||
$sql.= " WHERE ref < '".addslashes($this->ref)."'";
|
||||
if ($filter) $sql.=" AND ".$filter;
|
||||
if (isset($filter)) $sql.=" AND ".$filter;
|
||||
$result = $this->db->query($sql) ;
|
||||
if (! $result)
|
||||
{
|
||||
|
|
@ -958,7 +958,7 @@ class Product
|
|||
$sql = "SELECT MIN(ref)";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."product";
|
||||
$sql.= " WHERE ref > '".addslashes($this->ref)."'";
|
||||
if ($filter) $sql.=" AND ".$filter;
|
||||
if (isset($filter)) $sql.=" AND ".$filter;
|
||||
$result = $this->db->query($sql) ;
|
||||
if (! $result)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user