Page MenuHomePhorge

D25244.1735124828.diff
No OneTemporary

D25244.1735124828.diff

diff --git a/src/applications/diffusion/typeahead/DiffusionRepositoryDatasource.php b/src/applications/diffusion/typeahead/DiffusionRepositoryDatasource.php
--- a/src/applications/diffusion/typeahead/DiffusionRepositoryDatasource.php
+++ b/src/applications/diffusion/typeahead/DiffusionRepositoryDatasource.php
@@ -41,7 +41,7 @@
$parts[] = $name;
$slug = $repository->getRepositorySlug();
- if (strlen($slug)) {
+ if (phutil_nonempty_string($slug)) {
$parts[] = $slug;
}
diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php
--- a/src/applications/repository/storage/PhabricatorRepository.php
+++ b/src/applications/repository/storage/PhabricatorRepository.php
@@ -217,7 +217,7 @@
$monograms[] = 'R'.$this->getID();
$callsign = $this->getCallsign();
- if (strlen($callsign)) {
+ if (phutil_nonempty_string($callsign)) {
$monograms[] = 'r'.$callsign;
}

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 25, 11:07 (8 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1028447
Default Alt Text
D25244.1735124828.diff (1014 B)

Event Timeline