diff --git a/core/sqlobjectquery.class.inc.php b/core/sqlobjectquery.class.inc.php index 2bdd85e2e..e25e6c41e 100644 --- a/core/sqlobjectquery.class.inc.php +++ b/core/sqlobjectquery.class.inc.php @@ -339,8 +339,12 @@ class SQLObjectQuery extends SQLQuery $this->PrepareRendering(); $sFrom = self::ClauseFrom($this->__aFrom, $sIndent); $sWhere = self::ClauseWhere($this->m_oConditionExpr, $aArgs); + // Sanity + $iLimitCount = (int)$iLimitCount; if ($iLimitCount > 0) { + // Sanity + $iLimitStart = (int)$iLimitStart; $sLimit = 'LIMIT '.$iLimitStart.', '.$iLimitCount; } else