Fix: Postgresql compatibility
This commit is contained in:
parent
598e87ab62
commit
86fb0aa1b7
@ -634,7 +634,7 @@ class DoliDb
|
|||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
if (! $limit) $limit=$conf->liste_limit;
|
if (! $limit) $limit=$conf->liste_limit;
|
||||||
if ($offset > 0) return " LIMIT $offset,$limit ";
|
if ($offset > 0) return " LIMIT ".$limit." OFFSET ".$offset." ";
|
||||||
else return " LIMIT $limit ";
|
else return " LIMIT $limit ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user