Skip to content
Permalink
Browse files

Change ternary operator

  • Loading branch information...
Berry Goudswaard
Berry Goudswaard committed Sep 17, 2015
1 parent e42b536 commit ae111e6311d5cc40423a32ddc7e7da88b1fef158
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ORM/Behavior/TreeBehavior.php
@@ -775,7 +775,7 @@ protected function _recoverTree($counter = 0, $parentId = null, $level = -1)
list($parent, $left, $right) = [$config['parent'], $config['left'], $config['right']];
$primaryKey = $this->_getPrimaryKey();
$aliasedPrimaryKey = $this->_table->aliasField($primaryKey);
$order = $config['recoverOrder'] ? $config['recoverOrder'] : $aliasedPrimaryKey;
$order = $config['recoverOrder'] ?: $aliasedPrimaryKey;
$query = $this->_scope($this->_table->query())
->select([$aliasedPrimaryKey])

0 comments on commit ae111e6

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.