Permalink
Browse files

Allow MeetupAPIBase::pageSize to be set to 0.

  • Loading branch information...
1 parent 930ab73 commit 6de0d62cbeb5bce8ca261ca51ceb74b776957a2f @wizonesolutions committed Oct 24, 2010
Showing with 14 additions and 1 deletion.
  1. +1 −1 MeetupAPIBase.php
  2. +13 −0 meetup_api_setPageSize_fix_20101024.patch
View
@@ -294,7 +294,7 @@ protected function formatRequestName($formatName) {
}
function setPageSize($pageSize) {
- if ((int) $pageSize > 0) $this->pageSize = $pageSize;
+ if ((int) $pageSize > -1) $this->pageSize = (int) $pageSize;
}
function getPageSize() {
@@ -0,0 +1,13 @@
+diff --git MeetupAPIBase.php MeetupAPIBase.php
+index 1915f4f..3f040b2 100644
+--- MeetupAPIBase.php
++++ MeetupAPIBase.php
+@@ -294,7 +294,7 @@ class MeetupAPIBase {
+ }
+
+ function setPageSize($pageSize) {
+- if ((int) $pageSize > 0) $this->pageSize = $pageSize;
++ if ((int) $pageSize > -1) $this->pageSize = (int) $pageSize;
+ }
+
+ function getPageSize() {

0 comments on commit 6de0d62

Please sign in to comment.