Notice: Undefined offset: 0 in /var/www/html/app/Controllers/ProductController.php on line 17

Fatal error: Uncaught TypeError: Argument 1 passed to AppM\Product::getMakrModel() must be of the type integer, null given, called in /var/www/html/app/Controllers/ProductController.php on line 17 and defined in /var/www/html/app/Models/Product.php:120 Stack trace: #0 /var/www/html/app/Controllers/ProductController.php(17): AppM\Product->getMakrModel(NULL) #1 [internal function]: AppC\ProductController->indexAction('daewoo-96445044...') #2 /var/www/html/vendor/bit55/litero/src/Bit55/Litero/Router.php(202): call_user_func_array(Array, Array) #3 /var/www/html/index.php(65): Bit55\Litero\Router->executeHandler('AppC\\ProductCon...', Array) #4 {main} thrown in /var/www/html/app/Models/Product.php on line 120