Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2683743
D25272.1734690889.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
683 B
Referenced Files
None
Subscribers
None
D25272.1734690889.diff
View Options
diff --git a/src/view/phui/PHUISegmentBarSegmentView.php b/src/view/phui/PHUISegmentBarSegmentView.php
--- a/src/view/phui/PHUISegmentBarSegmentView.php
+++ b/src/view/phui/PHUISegmentBarSegmentView.php
@@ -26,6 +26,11 @@
return $this;
}
+ /**
+ * Set a Tooltip.
+ * @param string|null $tooltip
+ * @return self
+ */
public function setTooltip($tooltip) {
$this->tooltip = $tooltip;
return $this;
@@ -55,7 +60,7 @@
$left = sprintf('%.2f%%', $left);
$tooltip = $this->tooltip;
- if (strlen($tooltip)) {
+ if (phutil_nonempty_string($tooltip)) {
Javelin::initBehavior('phabricator-tooltips');
$sigil = 'has-tooltip';
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 10:34 (19 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1016976
Default Alt Text
D25272.1734690889.diff (683 B)
Attached To
Mode
D25272: Fix PHP 8.1 "strlen(null)" exception on UIExamples' Bars page
Attached
Detach File
Event Timeline
Log In to Comment