Page MenuHomePhorge

D25213.1737253945.diff
No OneTemporary

D25213.1737253945.diff

diff --git a/src/applications/project/typeahead/PhabricatorProjectDatasource.php b/src/applications/project/typeahead/PhabricatorProjectDatasource.php
--- a/src/applications/project/typeahead/PhabricatorProjectDatasource.php
+++ b/src/applications/project/typeahead/PhabricatorProjectDatasource.php
@@ -83,7 +83,7 @@
}
$slug = $proj->getPrimarySlug();
- if (!strlen($slug)) {
+ if (!phutil_nonempty_string($slug)) {
foreach ($proj->getSlugs() as $slug_object) {
$slug = $slug_object->getSlug();
if (strlen($slug)) {
@@ -132,7 +132,7 @@
->setPriorityType('proj')
->setClosed($closed);
- if (strlen($slug)) {
+ if (phutil_nonempty_string($slug)) {
$proj_result->setAutocomplete('#'.$slug);
}

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 19, 02:32 (2 h, 40 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1131112
Default Alt Text
D25213.1737253945.diff (796 B)

Event Timeline