]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix missing max_id in API search calls
authorJeffery To <jeffery.to@gmail.com>
Fri, 12 Jun 2009 12:03:18 +0000 (20:03 +0800)
committerJeffery To <jeffery.to@gmail.com>
Fri, 12 Jun 2009 12:03:18 +0000 (20:03 +0800)
actions/twitapisearchatom.php
lib/jsonsearchresultslist.php

index eb9ab5d8e9425add9688045321eb62aaa3ba7b05..c223a7e27c19e4a196508caa27350b93b666b0c8 100644 (file)
@@ -169,6 +169,7 @@ class TwitapisearchatomAction extends TwitterapiAction
         $this->cnt = $notice->find();
 
         $cnt = 0;
+        $this->max_id = 0;
 
         while ($notice->fetch()) {
 
index f786c20a806ed53c3c55cff6eb9c0cbe0367dad5..7beea9328d27649d507b4e8a753324ae836648d5 100644 (file)
@@ -89,6 +89,7 @@ class JSONSearchResultsList
     function show()
     {
         $cnt = 0;
+        $this->max_id = 0;
 
         $time_start = microtime(true);