@@ 49-51 (lines=3) @@ | ||
46 | $Qcurrent = $OSCOM_Db->get('categories', 'parent_id', ['categories_id' => (int)$current_category_id]); |
|
47 | ||
48 | if ($Qlast->valueInt('parent_id') === $Qcurrent->valueInt('parent_id')) { |
|
49 | for ($i = 0, $n = sizeof($cPath_array) - 1; $i < $n; $i++) { |
|
50 | $cPath_new .= '_' . $cPath_array[$i]; |
|
51 | } |
|
52 | } else { |
|
53 | for ($i = 0, $n = sizeof($cPath_array); $i < $n; $i++) { |
|
54 | $cPath_new .= '_' . $cPath_array[$i]; |
|
@@ 53-55 (lines=3) @@ | ||
50 | $cPath_new .= '_' . $cPath_array[$i]; |
|
51 | } |
|
52 | } else { |
|
53 | for ($i = 0, $n = sizeof($cPath_array); $i < $n; $i++) { |
|
54 | $cPath_new .= '_' . $cPath_array[$i]; |
|
55 | } |
|
56 | } |
|
57 | ||
58 | $cPath_new .= '_' . $current_category_id; |