Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2929208
D25272.1737654622.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
456 B
Referenced Files
None
Subscribers
None
D25272.1737654622.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
@@ -55,7 +55,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
Thu, Jan 23, 17:50 (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1145190
Default Alt Text
D25272.1737654622.diff (456 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