From f7bb25b730ff79d68829fe28f8253402725ee5a8 Mon Sep 17 00:00:00 2001 From: Serhey Dolgushev Date: Tue, 29 Sep 2020 13:59:01 -0400 Subject: [PATCH] LegacyStorageFileRowReader: handle the case when statement->fetch returns false (#89) * LegacyStorageFileRowReader: handle the case when statement->fetch returns false * Update eZ/Bundle/EzPublishIOBundle/Migration/FileLister/FileRowReader/LegacyStorageFileRowReader.php Co-authored-by: Andrew Longosz Co-authored-by: Andrew Longosz --- .../FileLister/FileRowReader/LegacyStorageFileRowReader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eZ/Bundle/EzPublishIOBundle/Migration/FileLister/FileRowReader/LegacyStorageFileRowReader.php b/eZ/Bundle/EzPublishIOBundle/Migration/FileLister/FileRowReader/LegacyStorageFileRowReader.php index 9a52c339e2..408d34749c 100644 --- a/eZ/Bundle/EzPublishIOBundle/Migration/FileLister/FileRowReader/LegacyStorageFileRowReader.php +++ b/eZ/Bundle/EzPublishIOBundle/Migration/FileLister/FileRowReader/LegacyStorageFileRowReader.php @@ -42,7 +42,7 @@ final public function getRow() { $row = $this->statement->fetch(); - return $this->prependMimeToPath($row['filename'], $row['mime_type']); + return false !== $row ? $this->prependMimeToPath($row['filename'], $row['mime_type']) : null; } final public function getCount()