Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
quickapps authored and lorenzo committed Mar 29, 2014
1 parent 026b4fe commit 54a2fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Behavior/TreeBehavior.php
Expand Up @@ -95,7 +95,7 @@ public function childCount($id, $direct = false) {
->where([$this->_table->primaryKey() => $id]);
$node = $this->_scope($node)->first();

return ($node->{$right} - $node->{$left} - 1) / 2;
return $node->{$right} - $node->{$left} - 1;
}

protected function _scope($query) {
Expand Down

0 comments on commit 54a2fd7

Please sign in to comment.