mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-12 20:41:26 +01:00
Fix: Si on appelle plimit sans paramtre, on prend la valeur par dfaut $conf->liste_limit
This commit is contained in:
@@ -409,14 +409,10 @@ class DoliDb
|
||||
|
||||
function plimit($limit=0,$offset=0)
|
||||
{
|
||||
if ($offset > 0)
|
||||
{
|
||||
return " LIMIT $offset,$limit ";
|
||||
}
|
||||
else
|
||||
{
|
||||
return " LIMIT $limit ";
|
||||
}
|
||||
global $conf;
|
||||
if (! $limit) $limit=$conf->liste_limit;
|
||||
if ($offset > 0) return " LIMIT $offset,$limit ";
|
||||
else return " LIMIT $limit ";
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user