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, ), ));