Skip to content

Commit

Permalink
Only run processLimit when a limit or offset is set
Browse files Browse the repository at this point in the history
  • Loading branch information
sovainfo committed May 16, 2014
1 parent ce50e65 commit 5b760ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/database/query.php
Expand Up @@ -473,7 +473,7 @@ public function __toString()
break;
}

if ($this instanceof JDatabaseQueryLimitable)
if ($this instanceof JDatabaseQueryLimitable && ($this->limit > 0 || $this->offset > 0))
{
$query = $this->processLimit($query, $this->limit, $this->offset);
}
Expand Down

0 comments on commit 5b760ed

Please sign in to comment.