Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4113891
D25994.1746939309.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
925 B
Referenced Files
None
Subscribers
None
D25994.1746939309.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D25994: Fix PHP 8.1 "strlen(null)" exceptions searching in Conpherence
Attached
Detach File
Event Timeline
Log In to Comment