Fix: Postgresql compatibility

This commit is contained in:
Laurent Destailleur 2011-02-23 12:56:10 +00:00
parent 598e87ab62
commit 86fb0aa1b7

View File

@ -634,7 +634,7 @@ class DoliDb
{
global $conf;
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 ";
}