Skip to content
Permalink
Browse files

seo_pro speedup

  • Loading branch information...
freelancer
freelancer committed Mar 16, 2014
1 parent f3c7482 commit 241ef3863c664216ba1da25801ba3c9ac0fbc891
Showing with 4 additions and 4 deletions.
  1. +4 −4 catalog/controller/common/seo_pro.php
@@ -233,9 +233,9 @@ private function getPathByProduct($product_id) {
if ($product_id < 1) return false;
static $path = null;
if (!is_array($path)) {
if (!isset($path)) {
$path = $this->cache->get('product.seopath');
if (!is_array($path)) $path = array();
if (!isset($path)) $path = array();
}
if (!isset($path[$product_id])) {
@@ -254,9 +254,9 @@ private function getPathByCategory($category_id) {
if ($category_id < 1) return false;
static $path = null;
if (!is_array($path)) {
if (!isset($path)) {
$path = $this->cache->get('category.seopath');
if (!is_array($path)) $path = array();
if (!isset($path)) $path = array();
}
if (!isset($path[$category_id])) {

0 comments on commit 241ef38

Please sign in to comment.
You can’t perform that action at this time.