silverstripe/silverstripe-forum — pull request #51 by sdiel (2013-12-10 14:30:52+00:00)
Title: FIX: Fixed wrong SQL syntax when searching with ForumDatabaseSearch

The expression 'if($potentialAuthors)' will always be true.
This will cause wrong SQL syntax when there is no matching Member for the given search term.