dever 4 years ago
parent
commit
c0bcf1ca87
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/Store/Core.php

+ 3 - 0
lib/Store/Core.php

@@ -429,6 +429,9 @@ class Core
 	protected function ext()
 	{
 		$this->ext  = $this->ext ? $this->ext : '.' . pathinfo($this->data['file']['name'], PATHINFO_EXTENSION);
+		if ($this->ext == '.') {
+			$this->ext = '.jpg';
+		}
 
 		return $this;
 	}