Skip to content

Commit

Permalink
Change ternary operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Berry Goudswaard committed Sep 17, 2015
1 parent e42b536 commit ae111e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/Behavior/TreeBehavior.php
Expand Up @@ -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])
Expand Down

0 comments on commit ae111e6

Please sign in to comment.