Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix getLimit and getOffset displaying errors if they haven't been set…

… yet
  • Loading branch information...
commit 41e0c0b20837c9f10b482aeb5a41e0e6d2bfa5d6 1 parent e64b569
@mlabrum authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 QueryBuilder.php
View
4 QueryBuilder.php
@@ -1344,7 +1344,7 @@ public function limit($limit, $offset = 0) {
* @uses QueryBuilder::$limit
*/
public function getLimit() {
- return $this->limit['limit'];
+ return @$this->limit['limit'];
}
/**
@@ -1354,7 +1354,7 @@ public function getLimit() {
* @uses QueryBuilder::$limit
*/
public function getLimitOffset() {
- return $this->limit['offset'];
+ return @$this->limit['offset'];
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.