Projekt

Allgemein

Profil

GX-Bug #61287 » AdmincPathFix.patch

Till Tepelmann, 28.02.2019 15:27

Unterschiede anzeigen:

src/inc/xtc_get_parent_categories.inc.php (date 1551363987000)
28 28
		{
29 29
			return true;
30 30
		}
31
		$id                              = $parent_categories['parent_id'];
32
		$parent_status                   = xtDBquery("select categories_status as status from " . TABLE_CATEGORIES
33
		                                             . " where categories_id = '" . (int)$id . "'");
34
		$parent_status                   = xtc_db_fetch_array($parent_status);
31
		
35 32
		$categories[sizeof($categories)] = $parent_categories['parent_id'];
36
		if($parent_status['status'] == 0)
37
		{
38
			$categories[sizeof($categories)] = -1;
39
		}
33
		
40 34
		if($parent_categories['parent_id'] != $categories_id)
41 35
		{
42 36
			xtc_get_parent_categories($categories, $parent_categories['parent_id']);
(1-1/2)