Skip to content

Commit

Permalink
修复若干 BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
thenbsp committed Apr 18, 2016
1 parent b30dd85 commit bd225af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Message/Entity/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ public function getBody()
$body['item'][] = $item->getBody();
}

return array('Articles' => $body);
$count = isset($body['item'])
? count($body['item'])
: 0;

return array('Articles' => $body, 'ArticleCount' => $count);
}

/**
Expand Down

0 comments on commit bd225af

Please sign in to comment.