Skip to content

Commit

Permalink
Minor tweak in getOrderedUserPosts() in MessageBoardService
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleangioni committed Feb 27, 2016
1 parent 85fd234 commit 1dc37ea
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,10 @@ public function updateUserLastView(MbUserInterface $user)
public function getOrderedUserPosts(MbUserInterface $user, $category = false, $private = null, $page = 1, $limit = 20,
$applyPresenter = false, $escapeText = false, MbUserInterface $userVisiting = null)
{
if(!$page) {
$page = 1;
}

if(!$limit) {
$limit = $this->postsPerPage;
}
Expand Down

0 comments on commit 1dc37ea

Please sign in to comment.