Skip to content

Commit

Permalink
Item9715: query is not always defined :-(
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@9539 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Oct 9, 2010
1 parent b77d927 commit 7470aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Search.pm
Expand Up @@ -925,7 +925,7 @@ sub formatResults {
type => $params->{type},
wordboundaries => $params->{wordboundaries},
casesensitive => $caseSensitive,
tokens => $query->tokens(),
tokens => $query ? $query->tokens() : undef,
};

# SMELL: why is this not part of the callback? at least the
Expand Down

0 comments on commit 7470aca

Please sign in to comment.