Skip to content
Browse files

fix query to work with just offset but no limit. fix #87

  • Loading branch information...
1 parent 0a2559f commit 38053d126aae3dfdd7f1937ed615156e79361e75 @dbu dbu committed Feb 14, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/Jackalope/Transport/Jackrabbit/Client.php
  2. +1 −1 tests/phpcr-api
View
2 src/Jackalope/Transport/Jackrabbit/Client.php
@@ -689,7 +689,7 @@ public function query(QueryInterface $query)
$body ='<D:searchrequest xmlns:D="DAV:"><JCR-SQL2><![CDATA['.$querystring.']]></JCR-SQL2>';
- if (null !== $limit || null !== $limit) {
+ if (null !== $limit || null !== $offset) {
$body .= '<D:limit>';
if (null !== $limit) {
$body .= '<D:nresults>'.(int)$limit.'</D:nresults>';
2 tests/phpcr-api
@@ -1 +1 @@
-Subproject commit aa6edd33245eaa9f6d95ce4717df3f95661ddcd9
+Subproject commit 95c9130a36008a49f6aaf92cad5558117ae995ee

0 comments on commit 38053d1

Please sign in to comment.
Something went wrong with that request. Please try again.