X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;ds=sidebyside;f=ajax%2FupdateReplies.php;h=90837488113ac49e7a34224729ba8baf37898a3e;hb=a983a08d1d19667bdd84d8a3cd2bdf08707ece51;hp=034d0542a6dad37e3a0bf90daab54299209976cd;hpb=5bdd277991f559ea403ccc607ad0f541ad6f5f9b;p=embrj%2Fmaster.git diff --git a/ajax/updateReplies.php b/ajax/updateReplies.php index 034d054..9083748 100644 --- a/ajax/updateReplies.php +++ b/ajax/updateReplies.php @@ -1,29 +1,28 @@ -replies(false, $_GET['since_id']); - - $empty = count($statuses) == 0? true: false; - - if ($empty) { - echo "empty"; - } else { - $output = ""; - foreach($statuses as $status) { - $output .= format_timeline($status, $t->username); - } - $output .= '
'; - echo $output; - } - - } else { - echo 'error'; - } - -?> +replies(false, $_GET['since_id']); + $count = count($statuses); + if ($count == 0) { + echo "empty"; + } else { + $output = ""; + foreach($statuses as $status) { + $output .= format_timeline($status, $t->username); + } + $tweetCounter = "$count unread mention(s)"; + $output .= '