diff --git a/core/lib/Drupal/Core/Entity/ContentEntityDatabaseStorage.php b/core/lib/Drupal/Core/Entity/ContentEntityDatabaseStorage.php index 5ff59ec..531d101 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityDatabaseStorage.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityDatabaseStorage.php @@ -150,6 +150,10 @@ protected function doLoadMultiple(array $ids = NULL) { * An array of entity objects implementing the EntityInterface. */ protected function mapFromStorageRecords(array $records) { + if (!$records) { + return array(); + } + $entities = array(); foreach ($records as $id => $record) { $entities[$id] = array();