Warning: Trying to access array offset on value of type null in /home/njyhxsrs/public_html/controllers/front/listing/CategoryController.php on line 377

Fatal error: Uncaught TypeError: CategoryControllerCore::getCategoryToRedirectTo(): Return value must be of type int, null returned in /home/njyhxsrs/public_html/controllers/front/listing/CategoryController.php:377 Stack trace: #0 /home/njyhxsrs/public_html/controllers/front/listing/CategoryController.php(94): CategoryControllerCore->getCategoryToRedirectTo() #1 /home/njyhxsrs/public_html/classes/controller/Controller.php(311): CategoryControllerCore->init() #2 /home/njyhxsrs/public_html/classes/Dispatcher.php(486): ControllerCore->run() #3 /home/njyhxsrs/public_html/index.php(78): DispatcherCore->dispatch() #4 {main} thrown in /home/njyhxsrs/public_html/controllers/front/listing/CategoryController.php on line 377