Jump to content

Edit History

MindFlyer

MindFlyer

Debug pokazuje jeszcze coś takiego (może tu coś się wykrzaczyło?)

Notice: Undefined property: Possearchcategories::$_html in /public_html/modules/possearchcategories/possearchcategories.php on line 260

 

Poniżej ten fragment kodu z zaznaczonym wierszem 260.

 

	private function getCategoryOption($id_category = 1, $id_lang = false, $id_shop = false, $recursive = true) {
		$id_lang = $id_lang ? (int)$id_lang : (int)Context::getContext()->language->id;
		$category = new Category((int)$id_category, (int)$id_lang, (int)$id_shop);
		if (is_null($category->id))
			return;
		if ($recursive)
		{
			$children = Category::getChildren((int)$id_category, (int)$id_lang, true, (int)$id_shop);
			if($category->level_depth=='1'){
				$spacer='';
			}else{
				$spacer = str_repeat('-', $this->spacer_size * (int)$category->level_depth);
			}

		}
		$shop = (object) Shop::getShop((int)$category->getShopID());
		if($category->name!='Root' && $category->name!='Home'){
//260		$this->_html .= '<option value="'.(int)$category->id.'">'.(isset($spacer) ? $spacer : '').$category->name.' </option>';
		}

 

MindFlyer

MindFlyer

Debug pokazuje jeszcze coś takiego (może tu coś się wykrzaczyło?)

Notice: Undefined property: Possearchcategories::$_html in /home/srv31777/domains/ebookipolihymnia.pl/public_html/modules/possearchcategories/possearchcategories.php on line 260

 

Poniżej ten fragment kodu z zaznaczonym wierszem 260.

 

	private function getCategoryOption($id_category = 1, $id_lang = false, $id_shop = false, $recursive = true) {
		$id_lang = $id_lang ? (int)$id_lang : (int)Context::getContext()->language->id;
		$category = new Category((int)$id_category, (int)$id_lang, (int)$id_shop);
		if (is_null($category->id))
			return;
		if ($recursive)
		{
			$children = Category::getChildren((int)$id_category, (int)$id_lang, true, (int)$id_shop);
			if($category->level_depth=='1'){
				$spacer='';
			}else{
				$spacer = str_repeat('-', $this->spacer_size * (int)$category->level_depth);
			}

		}
		$shop = (object) Shop::getShop((int)$category->getShopID());
		if($category->name!='Root' && $category->name!='Home'){
//260		$this->_html .= '<option value="'.(int)$category->id.'">'.(isset($spacer) ? $spacer : '').$category->name.' </option>';
		}

 

×
×
  • Create New...