ext is sometimes null

This commit is contained in:
Pierre Rudloff 2020-06-21 11:50:25 +02:00
parent 07be28580b
commit a9965ef849

View file

@ -227,7 +227,11 @@ class Video
*/ */
public function getFileNameWithExtension($extension) public function getFileNameWithExtension($extension)
{ {
if (isset($this->ext)) {
return str_replace('.' . $this->ext, '.' . $extension, $this->getFilename()); return str_replace('.' . $this->ext, '.' . $extension, $this->getFilename());
} else {
return $this->getFilename() . '.' . $extension;
}
} }
/** /**