Skip to content

Commit

Permalink
phpmdエラー修正
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nakajima committed Aug 11, 2016
1 parent fa9dc89 commit bf563ec
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Controller/BbsArticlesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,9 @@ public function index() {
$query['order'] = array('BbsArticle.created' => 'desc');
}
//表示件数
if (isset($this->params['named']['limit'])) {
$query['limit'] = (int)$this->params['named']['limit'];
} else {
$query['limit'] = $this->viewVars['bbsFrameSetting']['articles_per_page'];
}
$query['limit'] = (int)Hash::get(
$this->params['named'], 'limit', $this->viewVars['bbsFrameSetting']['articles_per_page']
);

$this->Paginator->settings = $query;
try {
Expand Down

0 comments on commit bf563ec

Please sign in to comment.