From cb08e0af64fb2f43b0df394616e27be7b72738ff Mon Sep 17 00:00:00 2001 From: Aldarien Date: Fri, 29 May 2020 20:42:38 -0400 Subject: [PATCH] FIX: no destacaba --- src/Producto.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Producto.php b/src/Producto.php index 3a038bc..5e9396a 100644 --- a/src/Producto.php +++ b/src/Producto.php @@ -205,7 +205,7 @@ class Producto extends Model { $destacados = json_decode(trim(file_get_contents($filename))); $changed = false; - if ($this->destacado()) { + if (!$this->destacado()) { foreach ($destacados as $i => $id) { if ($id == $this->id) { unset($destacados[$i]);