Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2682579
D25282.1734664513.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
867 B
Referenced Files
None
Subscribers
None
D25282.1734664513.diff
View Options
diff --git a/src/applications/repository/xaction/PhabricatorRepositoryStagingURITransaction.php b/src/applications/repository/xaction/PhabricatorRepositoryStagingURITransaction.php
--- a/src/applications/repository/xaction/PhabricatorRepositoryStagingURITransaction.php
+++ b/src/applications/repository/xaction/PhabricatorRepositoryStagingURITransaction.php
@@ -17,12 +17,12 @@
$old = $this->getOldValue();
$new = $this->getNewValue();
- if (!strlen($old)) {
+ if (!phutil_nonempty_string($old)) {
return pht(
'%s set %s as the staging area for this repository.',
$this->renderAuthor(),
$this->renderNewValue());
- } else if (!strlen($new)) {
+ } else if (!phutil_nonempty_string($new)) {
return pht(
'%s removed %s as the staging area for this repository.',
$this->renderAuthor(),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 03:15 (21 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1016448
Default Alt Text
D25282.1734664513.diff (867 B)
Attached To
Mode
D25282: Fix PHP 8.1 "strlen(null)" exception about Staging URI on Diffusion repo History page
Attached
Detach File
Event Timeline
Log In to Comment