Page MenuHomePhorge

D25994.1746939309.diff
No OneTemporary

D25994.1746939309.diff

diff --git a/src/applications/conpherence/query/ConpherenceFulltextQuery.php b/src/applications/conpherence/query/ConpherenceFulltextQuery.php
--- a/src/applications/conpherence/query/ConpherenceFulltextQuery.php
+++ b/src/applications/conpherence/query/ConpherenceFulltextQuery.php
@@ -55,7 +55,7 @@
$this->previousTransactionPHIDs);
}
- if (strlen($this->fulltext)) {
+ if (phutil_nonempty_string($this->fulltext)) {
$compiler = PhabricatorSearchDocument::newQueryCompiler();
$tokens = $compiler->newTokens($this->fulltext);
$compiled_query = $compiler->compileQuery($tokens);
@@ -70,7 +70,7 @@
}
private function buildOrderByClause(AphrontDatabaseConnection $conn_r) {
- if (strlen($this->fulltext)) {
+ if (phutil_nonempty_string($this->fulltext)) {
return qsprintf(
$conn_r,
'ORDER BY MATCH(i.corpus) AGAINST (%s IN BOOLEAN MODE) DESC',

File Metadata

Mime Type
text/plain
Expires
Sun, May 11, 04:55 (11 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1527112
Default Alt Text
D25994.1746939309.diff (925 B)

Event Timeline