diff options
Diffstat (limited to 'lib/db.php')
-rw-r--r-- | lib/db.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/db.php b/lib/db.php index 208e70f4c35..d67cebce589 100644 --- a/lib/db.php +++ b/lib/db.php @@ -263,7 +263,7 @@ class OC_DB { */ static public function prepare( $query , $limit=null, $offset=null ){ - if (!is_null($limit)) { + if (!is_null($limit) && limit != -1) { if (self::$backend == self::BACKEND_MDB2) { //MDB2 uses or emulates limits & offset internally self::$MDB2->setLimit($limit, $offset); |