From d93f08f8fd76fc3355cec96174554bfde3428d5a Mon Sep 17 00:00:00 2001 From: ifsnow Date: Tue, 12 Jan 2016 23:32:49 +0900 Subject: [PATCH] Fixes #11298 --- phalcon/mvc/model/query/builder.zep | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phalcon/mvc/model/query/builder.zep b/phalcon/mvc/model/query/builder.zep index 6db123973cb..a244da95929 100644 --- a/phalcon/mvc/model/query/builder.zep +++ b/phalcon/mvc/model/query/builder.zep @@ -904,11 +904,11 @@ class Builder implements BuilderInterface, InjectionAwareInterface * $builder->limit(100, 20); * */ - public function limit(int limit = null, int offset = null) -> + public function limit(var limit = null, var offset = null) -> { let this->_limit = limit; - if offset { - let this->_offset = offset; + if is_numeric(offset) { + let this->_offset = (int)offset; } return this; }