Warning: Trying to access array offset on value of type bool in /var/www/sexyshop.rs/html/src/Controllers/CategoryController.php on line 316
Fatal error: Uncaught TypeError: Shop\Controllers\CategoryController::getPrimaryCatName(): Return value must be of type string, null returned in /var/www/sexyshop.rs/html/src/Controllers/CategoryController.php:316
Stack trace:
#0 /var/www/sexyshop.rs/html/src/Controllers/CategoryController.php(258): Shop\Controllers\CategoryController->getPrimaryCatName()
#1 /var/www/sexyshop.rs/html/src/Controllers/CategoryController.php(292): Shop\Controllers\CategoryController->setDataForCache()
#2 /var/www/sexyshop.rs/html/src/Controllers/CategoryController.php(57): Shop\Controllers\CategoryController->manageRedisCache()
#3 /var/www/sexyshop.rs/html/src/Logic/Router.php(236): Shop\Controllers\CategoryController->index()
#4 /var/www/sexyshop.rs/html/public/index.php(15): Shop\Logic\Router::dispatch()
#5 {main}
thrown in /var/www/sexyshop.rs/html/src/Controllers/CategoryController.php on line 316