Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_QueryResult.php |
— | — | @@ -218,8 +218,11 @@ |
219 | 219 | } |
220 | 220 | |
221 | 221 | $params['offset'] = $this->mQuery->getOffset() + $this->mQuery->getLimit(); |
222 | | - $params['limit'] = $this->mQuery->getLimit(); |
223 | | - |
| 222 | + |
| 223 | + if ( $this->mQuery->getLimit() > 0 ) { |
| 224 | + $params['limit'] = $this->mQuery->getLimit(); |
| 225 | + } |
| 226 | + |
224 | 227 | if ( count( $this->mQuery->sortkeys ) > 0 ) { |
225 | 228 | $order = implode( ',', $this->mQuery->sortkeys ); |
226 | 229 | $sort = implode( ',', array_keys( $this->mQuery->sortkeys ) ); |