From: <var...@us...> - 2014-07-15 16:37:08
|
Revision: 8963 http://sourceforge.net/p/phpwiki/code/8963 Author: vargenau Date: 2014-07-15 16:37:05 +0000 (Tue, 15 Jul 2014) Log Message: ----------- Add braces Modified Paths: -------------- trunk/lib/TextSearchQuery.php Modified: trunk/lib/TextSearchQuery.php =================================================================== --- trunk/lib/TextSearchQuery.php 2014-07-15 12:28:16 UTC (rev 8962) +++ trunk/lib/TextSearchQuery.php 2014-07-15 16:37:05 UTC (rev 8963) @@ -96,10 +96,11 @@ */ function TextSearchQuery($search_query, $case_exact = false, $regex = 'auto') { - if ($regex == 'none' or !$regex) + if ($regex == 'none' or !$regex) { $this->_regex = 0; - elseif (defined("TSQ_REGEX_" . strtoupper($regex))) - $this->_regex = constant("TSQ_REGEX_" . strtoupper($regex)); else { + } elseif (defined("TSQ_REGEX_" . strtoupper($regex))) { + $this->_regex = constant("TSQ_REGEX_" . strtoupper($regex)); + } else { trigger_error(fmt("Unsupported argument: %s=%s", 'regex', $regex)); $this->_regex = 0; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |