diff --git a/core/lib/Drupal/Core/Entity/FieldableDatabaseStorageController.php b/core/lib/Drupal/Core/Entity/FieldableDatabaseStorageController.php index b62926b..828f58d 100644 --- a/core/lib/Drupal/Core/Entity/FieldableDatabaseStorageController.php +++ b/core/lib/Drupal/Core/Entity/FieldableDatabaseStorageController.php @@ -214,11 +214,12 @@ public function loadMultiple(array $ids = NULL) { * @param array $ids * List of entity IDs to load or NULL to load all. * - * @param \Drupal\Core\Entity\ContentEntityInterface[] + * @return \Drupal\Core\Entity\ContentEntityInterface[] * Array of loaded entities. */ protected function doLoadMultiple(array $ids = NULL) { - if (is_array($ids) && empty($ids)) { + // There is nothing to do if $ids is an empty array. + if ($ids === array()) { return array(); }