diff --git a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldLink.php b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldLink.php index 66f3605b9c..c2b9d6543c 100644 --- a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldLink.php +++ b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldLink.php @@ -47,7 +47,12 @@ final class PhabricatorStandardCustomFieldLink PhabricatorCursorPagedPolicyAwareQuery $query, $value) { - if (strlen($value)) { + if (is_string($value) && !strlen($value)) { + return; + } + + $value = (array)$value; + if ($value) { $query->withApplicationSearchContainsConstraint( $this->newStringIndex(null), $value);