Page MenuHomePhorge

D25265.1734848621.diff
No OneTemporary

D25265.1734848621.diff

diff --git a/src/applications/repository/xaction/PhabricatorRepositoryDefaultBranchTransaction.php b/src/applications/repository/xaction/PhabricatorRepositoryDefaultBranchTransaction.php
--- a/src/applications/repository/xaction/PhabricatorRepositoryDefaultBranchTransaction.php
+++ b/src/applications/repository/xaction/PhabricatorRepositoryDefaultBranchTransaction.php
@@ -17,12 +17,12 @@
$old = $this->getOldValue();
$new = $this->getNewValue();
- if (!strlen($new)) {
+ if (!phutil_nonempty_string($new)) {
return pht(
'%s removed %s as the default branch.',
$this->renderAuthor(),
$this->renderOldValue());
- } else if (!strlen($old)) {
+ } else if (!phutil_nonempty_string($old)) {
return pht(
'%s set the default branch to %s.',
$this->renderAuthor(),

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 06:23 (21 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1025311
Default Alt Text
D25265.1734848621.diff (843 B)

Event Timeline