Page MenuHomePhorge

D25244.1735117116.diff
No OneTemporary

D25244.1735117116.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, 08:58 (6 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1028447
Default Alt Text
D25244.1735117116.diff (1014 B)

Event Timeline