Page MenuHomePhorge

D25596.1737023977.diff
No OneTemporary

D25596.1737023977.diff

diff --git a/src/applications/dashboard/editfield/PhabricatorDashboardQueryPanelQueryEditField.php b/src/applications/dashboard/editfield/PhabricatorDashboardQueryPanelQueryEditField.php
--- a/src/applications/dashboard/editfield/PhabricatorDashboardQueryPanelQueryEditField.php
+++ b/src/applications/dashboard/editfield/PhabricatorDashboardQueryPanelQueryEditField.php
@@ -38,7 +38,7 @@
}
}
- if (strlen($value) && !$seen) {
+ if (phutil_nonempty_string($value) && !$seen) {
$name = pht('Custom Query ("%s")', $value);
} else {
$name = pht('(None)');
@@ -56,7 +56,7 @@
'queryID' => $control_id,
'options' => $queries,
'value' => array(
- 'key' => strlen($value) ? $value : null,
+ 'key' => phutil_nonempty_string($value) ? $value : null,
'name' => $name,
),
));

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 16, 10:39 (1 d, 18 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1116122
Default Alt Text
D25596.1737023977.diff (876 B)

Event Timeline