Check if medium thumbnail exists before resetting

This commit is contained in:
Flavio Copes
2017-07-17 18:10:00 +02:00
parent cd081b22a4
commit c178b22c10
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
# v1.3.1
## 07/xx/2017
1. [](#bugfix)
* Check if medium thumbnail exists before resetting
# v1.3.0
## 07/16/2017

View File

@@ -367,7 +367,7 @@ class Medium extends Data implements RenderableInterface
$this->mode = $mode;
return $mode === 'thumbnail' ? $this->getThumbnail()->reset() : $this->reset();
return $mode === 'thumbnail' ? ($this->getThumbnail() ? $this->getThumbnail()->reset() : null) : $this->reset();
}
/**