From 2ce8c1ad9c93136c36cebdac260c5e556f26dad1 Mon Sep 17 00:00:00 2001 From: Eugen Date: Fri, 16 Sep 2016 19:22:20 +0300 Subject: [PATCH] Update shopProductsCollection.class.php --- lib/classes/shopProductsCollection.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } }