Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/classes/shopProductsCollection.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -157,9 +160,6 @@ protected function prepare($add = false, $auto_title = true)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем? :)

}

if ($this->prepared) {
return;
}
$this->prepared = true;
}
}
Expand Down