FIX: imagen de thumbnail

This commit is contained in:
2020-06-08 15:49:25 -04:00
parent 7aa3546e0a
commit ac19b02797

View File

@ -105,7 +105,7 @@ class Producto extends Model {
$this->imagen = 'default.jpg'; $this->imagen = 'default.jpg';
$img = $this->imagenes(); $img = $this->imagenes();
if (count($img) > 0) { if (count($img) > 0) {
$this->imagen = $img[0]; $this->imagen = implode('/', [mb_strtolower($this->nombre), $img[0]]);
} }
} }
return $this->imagen; return $this->imagen;