Page MenuHomePhorge

D25994.1746908606.diff
No OneTemporary

D25994.1746908606.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
Sat, May 10, 20:23 (12 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1527112
Default Alt Text
D25994.1746908606.diff (925 B)

Event Timeline