Fix: Si on appelle plimit sans paramtre, on prend la valeur par dfaut $conf->liste_limit
This commit is contained in:
parent
04c060869d
commit
af4eaa6e5b
@ -409,14 +409,10 @@ class DoliDb
|
|||||||
|
|
||||||
function plimit($limit=0,$offset=0)
|
function plimit($limit=0,$offset=0)
|
||||||
{
|
{
|
||||||
if ($offset > 0)
|
global $conf;
|
||||||
{
|
if (! $limit) $limit=$conf->liste_limit;
|
||||||
return " LIMIT $offset,$limit ";
|
if ($offset > 0) return " LIMIT $offset,$limit ";
|
||||||
}
|
else return " LIMIT $limit ";
|
||||||
else
|
|
||||||
{
|
|
||||||
return " LIMIT $limit ";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -409,14 +409,10 @@ class DoliDb
|
|||||||
|
|
||||||
function plimit($limit=0,$offset=0)
|
function plimit($limit=0,$offset=0)
|
||||||
{
|
{
|
||||||
if ($offset > 0)
|
global $conf;
|
||||||
{
|
if (! $limit) $limit=$conf->liste_limit;
|
||||||
return " LIMIT $offset,$limit ";
|
if ($offset > 0) return " LIMIT $offset,$limit ";
|
||||||
}
|
else return " LIMIT $limit ";
|
||||||
else
|
|
||||||
{
|
|
||||||
return " LIMIT $limit ";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -530,5 +526,5 @@ class DoliDb
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user