Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2698205
D25181.1734991858.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
1 KB
Referenced Files
None
Subscribers
None
D25181.1734991858.diff
View Options
diff --git a/src/applications/config/option/PhabricatorConfigOption.php b/src/applications/config/option/PhabricatorConfigOption.php
--- a/src/applications/config/option/PhabricatorConfigOption.php
+++ b/src/applications/config/option/PhabricatorConfigOption.php
@@ -156,11 +156,22 @@
return $this->summary;
}
+ /**
+ * Set the human Description of this Config
+ *
+ * @param string|null $description Description as raw Remarkup
+ * @return self
+ */
public function setDescription($description) {
$this->description = $description;
return $this;
}
+ /**
+ * Get the human Description of this Config
+ *
+ * @return string|null Description as raw Remarkup
+ */
public function getDescription() {
return $this->description;
}
@@ -205,7 +216,7 @@
public function newDescriptionRemarkupView(PhabricatorUser $viewer) {
$description = $this->getDescription();
- if (!strlen($description)) {
+ if (!phutil_nonempty_string($description)) {
return null;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 22:10 (19 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1027130
Default Alt Text
D25181.1734991858.diff (1 KB)
Attached To
Mode
D25181: Fix PHP 8.1 "strlen(null)" exception which blocks rendering a config page
Attached
Detach File
Event Timeline
Log In to Comment