mirror of
https://github.com/getgrav/grav.git
synced 2026-07-05 09:18:43 +02:00
Check if medium thumbnail exists before resetting
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user