Skip to content

Commit

Permalink
Fixed a bug that caused a fatal error in UserModel.JoinUsers() when…
Browse files Browse the repository at this point in the history
…ever any search was performed
  • Loading branch information
bauerjj committed Jun 23, 2014
1 parent acb684f commit 056b811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class.searchmodel.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ public function Reset() {
public function Search($Search, $Offset = 0, $Limit = 20) {

/**
* Override the default search from running right here!
* Override the default search from running right here!
*/
if(true) // Force this to be true while the sphinxsearch plugin is enabled!
return FALSE; //sphinx is running...don't use default search
return array(); //sphinx is running...don't use default search
else {
// If there are no searches then return an empty array.
if (trim($Search) == '')
Expand Down

0 comments on commit 056b811

Please sign in to comment.