Skip to content

Commit

Permalink
LegacyStorageFileRowReader: handle the case when statement->fetch ret…
Browse files Browse the repository at this point in the history
…urns 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 <alongosz@users.noreply.github.com>

Co-authored-by: Andrew Longosz <alongosz@users.noreply.github.com>
  • Loading branch information
SerheyDolgushev and alongosz authored Sep 29, 2020
1 parent e2a99b2 commit f7bb25b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f7bb25b

Please # to comment.