FIX: no destacaba

This commit is contained in:
2020-05-29 20:42:38 -04:00
parent 5510766ecb
commit cb08e0af64

View File

@ -205,7 +205,7 @@ class Producto extends Model {
$destacados = json_decode(trim(file_get_contents($filename))); $destacados = json_decode(trim(file_get_contents($filename)));
$changed = false; $changed = false;
if ($this->destacado()) { if (!$this->destacado()) {
foreach ($destacados as $i => $id) { foreach ($destacados as $i => $id) {
if ($id == $this->id) { if ($id == $this->id) {
unset($destacados[$i]); unset($destacados[$i]);