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]);