Skip to content

Commit

Permalink
Merge pull request #113 from NetCommons3/speedup
Browse files Browse the repository at this point in the history
phpcsエラー修正
  • Loading branch information
s-nakajima committed Jun 26, 2018
2 parents 24f9f4b + 908b480 commit c809c83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/BbsArticle.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public function deleteBbsArticle($data) {
$bbsArticleTree = $this->BbsArticleTree->find('first', array(
'recursive' => -1,
'fields' => array('lft', 'rght'),
// 'fields' => array('sort_key'),
//'fields' => array('sort_key'),
'conditions' => array(
'bbs_article_key' => $this->data['BbsArticle']['key']
),
Expand All @@ -303,7 +303,7 @@ public function deleteBbsArticle($data) {
'recursive' => -1,
'fields' => array('id', 'bbs_article_key'),
'conditions' => array(
// 'sort_key LIKE' => '' . $bbsArticleTree['BbsArticleTree']['lft'] . '%',
//'sort_key LIKE' => '' . $bbsArticleTree['BbsArticleTree']['lft'] . '%',
'lft >=' => $bbsArticleTree['BbsArticleTree']['lft'],
'rght <=' => $bbsArticleTree['BbsArticleTree']['rght'],
),
Expand Down

0 comments on commit c809c83

Please sign in to comment.