Fix: Postgresql compatibility

This commit is contained in:
Laurent Destailleur
2011-02-23 12:55:08 +00:00
parent 31ce38e12c
commit f85ac5eb56

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 ";
}