Skip to content

Commit

Permalink
error handling and remove caps on dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Jul 3, 2011
1 parent 31e98ec commit 12368e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 3 additions & 1 deletion proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@
$data = json_encode($timeline->response);

// if twitter is over capcity, try to avoid it borking
if (stripos($data, 'Over capacity') !== -1) {
if (stripos($data, 'Over capacity') !== false) {
$data = '{}';
} else {
error_log($data);
}
}

Expand Down
Loading

0 comments on commit 12368e3

Please sign in to comment.