diff --git a/lib/classes/shopProductsCollection.class.php b/lib/classes/shopProductsCollection.class.php index 5f695750c..954f2044d 100644 --- a/lib/classes/shopProductsCollection.class.php +++ b/lib/classes/shopProductsCollection.class.php @@ -133,6 +133,9 @@ protected function prepare($add = false, $auto_title = true) if (method_exists($this, $method)) { $this->$method(isset($this->hash[1]) ? $this->hash[1] : '', $auto_title); } else { + + $this->prepared = true; + $params = array( 'collection' => $this, 'auto_title' => $auto_title, @@ -157,9 +160,6 @@ protected function prepare($add = false, $auto_title = true) } } - if ($this->prepared) { - return; - } $this->prepared = true; } }