dever %!s(int64=5) %!d(string=hai) anos
pai
achega
c0bcf1ca87
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;
 	}