diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-07-01 00:50:19 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-07-01 00:50:19 +0000 |
commit | 6c28a07cf58120e271de6e0c9c89a1f9a6d0101e (patch) | |
tree | 26683f5909d96ab00a5cb6d8e58f374fa99db0ee /actions/twitapisearchjson.php | |
parent | 015492daace57361c3cdfe91feafdbeb2d2cf6bd (diff) | |
parent | fbb7757c4b546bee7b2bf224e5544f7af3fa7d94 (diff) |
Merge branch '0.8.x' of git@gitorious.org:laconica/dev into 0.8.x
Diffstat (limited to 'actions/twitapisearchjson.php')
-rw-r--r-- | actions/twitapisearchjson.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/actions/twitapisearchjson.php b/actions/twitapisearchjson.php index b0e3be687..27a717bfc 100644 --- a/actions/twitapisearchjson.php +++ b/actions/twitapisearchjson.php @@ -124,8 +124,11 @@ class TwitapisearchjsonAction extends TwitterapiAction $search_engine = $notice->getSearchEngine('identica_notices'); $search_engine->set_sort_mode('chron'); $search_engine->limit(($this->page - 1) * $this->rpp, $this->rpp + 1, true); - $search_engine->query($q); - $cnt = $notice->find(); + if (false === $search_engine->query($q)) { + $cnt = 0; + } else { + $cnt = $notice->find(); + } // TODO: since_id, lang, geocode @@ -146,4 +149,4 @@ class TwitapisearchjsonAction extends TwitterapiAction { return true; } -}
\ No newline at end of file +} |