Skip to content

Commit

Permalink
There is no $sort_order here.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Mar 5, 2015
1 parent 68f7d81 commit cefc217
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions turba/lib/Driver.php
Expand Up @@ -662,16 +662,17 @@ protected function _filterTags($objects, $tags)
global $injector;

if (empty($tags)) {
return $this->_toTurbaObjects($objects, $sort_order);
return $this->_toTurbaObjects($objects);
}
$tag_results = $injector->getInstance('Turba_Tagger')->search($tags, array('list' => $this->_name));
$tag_results = $injector->getInstance('Turba_Tagger')
->search($tags, array('list' => $this->_name));

// Short circuit if we know we have no tag hits.
if (!$tag_results) {
return new Turba_List();
}

$list = $this->_toTurbaObjects($objects, $sort_order);
$list = $this->_toTurbaObjects($objects);
return $list->filter('__uid', $tag_results);
}

Expand Down

0 comments on commit cefc217

Please sign in to comment.