Skip to content

Commit

Permalink
more refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
quickapps authored and lorenzo committed Mar 29, 2014
1 parent 7bdcb0a commit f7aec37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Model/Behavior/TreeBehavior.php
Expand Up @@ -203,7 +203,6 @@ public function moveUp($id, $number = 1) {
* @return boolean true on success, false on failure
*/
public function moveDown($id, $number = 1) {
$primaryKey = $this->_table->primaryKey();
$config = $this->config();
extract($config);

Expand All @@ -222,7 +221,7 @@ public function moveDown($id, $number = 1) {
}

$nextNode = $this->_scope($this->_table->find())
->select([$primaryKey, $left, $right])
->select([$left, $right])
->where([$left => $node->{$right} + 1])
->first();

Expand Down

0 comments on commit f7aec37

Please sign in to comment.