diff --git a/README.md b/README.md index e532a103f..b7b7d53ff 100644 --- a/README.md +++ b/README.md @@ -97,11 +97,12 @@ If you wish to help steer the future direction of the software you need to join Channel | URL ------------ | ------------- Phoenix Club | https://forums.oscommerce.com/forum/117-topics/ -Youtube | https://www.youtube.com/channel/UCjJe0ZX3-nGzeJFEzcVUyIA/ -Discord | https://discord.gg/3pzfrtMAX4 -External Libraries | https://github.com/gburton/Responsive-osCommerce/wiki/External-Libraries -Phoenix Cart Wiki | https://phoenixcart.org/phoenixcartwiki/index.php -Phoenix Cart Forum | https://phoenixcart.org/forum/ +Phoenix (Youtube) | https://www.youtube.com/channel/UCjJe0ZX3-nGzeJFEzcVUyIA/ +Zipurman Coding (Youtube) | https://www.youtube.com/user/zipurman/videos +Support (Discord) | https://discord.gg/3pzfrtMAX4 +Phoenix Cart (Wiki) | https://phoenixcart.org/phoenixcartwiki/index.php +Phoenix Cart (Forum) | https://phoenixcart.org/forum/ +Github (Discussions) | https://github.com/gburton/CE-Phoenix/discussions # Credits diff --git a/admin/categories.php b/admin/categories.php index 716b6af8a..86c8d45b1 100644 --- a/admin/categories.php +++ b/admin/categories.php @@ -15,13 +15,13 @@ $currencies = new currencies(); // calculate category path - $cPath = $_GET['cPath'] ?? ''; - if (tep_not_null($cPath)) { - $cPath_array = tep_parse_category_path($cPath); + if (empty($_GET['cPath'])) { + $current_category_id = 0; + $cPath = ''; + } else { + $cPath_array = tep_parse_category_path($_GET['cPath']); $cPath = implode('_', $cPath_array); $current_category_id = end($cPath_array); - } else { - $current_category_id = 0; } const DIR_FS_CATALOG_IMAGES = DIR_FS_CATALOG . 'images/'; @@ -623,8 +623,8 @@ function updateNet() {