diff --git a/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php b/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php index e113a6e106..64385c6f10 100644 --- a/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php +++ b/src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php @@ -33,7 +33,7 @@ final class PhabricatorTypeaheadModularDatasourceController ->setAncestorClass(PhabricatorTypeaheadDatasource::class) ->execute(); - if (isset($sources[$class])) { + if ($class && isset($sources[$class])) { $source = $sources[$class]; $parameters = array();