Page MenuHomePhorge

D25481.1734770654.diff
No OneTemporary

D25481.1734770654.diff

diff --git a/src/applications/files/xaction/PhabricatorFileAltTextTransaction.php b/src/applications/files/xaction/PhabricatorFileAltTextTransaction.php
--- a/src/applications/files/xaction/PhabricatorFileAltTextTransaction.php
+++ b/src/applications/files/xaction/PhabricatorFileAltTextTransaction.php
@@ -50,13 +50,13 @@
$old_value = $this->getOldValue();
$new_value = $this->getNewValue();
- if (!strlen($old_value)) {
+ if (!phutil_nonempty_string($old_value)) {
return pht(
'%s set the alternate text for %s to %s.',
$this->renderAuthor(),
$this->renderObject(),
$this->renderNewValue());
- } else if (!strlen($new_value)) {
+ } else if (!phutil_nonempty_string($new_value)) {
return pht(
'%s removed the alternate text for %s (was %s).',
$this->renderAuthor(),

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 08:44 (4 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1016698
Default Alt Text
D25481.1734770654.diff (860 B)

Event Timeline