mirror of
https://github.com/humhub/humhub.git
synced 2025-01-18 06:38:14 +01:00
Fix: Call to getUrl() on null if preview image is not set.
Occurred for files where no conversion to a preview image was possible.
This commit is contained in:
parent
0b6a7b2362
commit
9cbbdb7e87
@ -61,7 +61,7 @@ abstract class BaseConverter extends \yii\base\Object
|
||||
*/
|
||||
public function getUrl()
|
||||
{
|
||||
return $this->file->getUrl($this->getFileName());
|
||||
return $this->file == null ? '' : $this->file->getUrl($this->getFileName());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user