Error

Uncaught exception: 'ErrorException'

Message: 'Trying to get property 'id' of non-object'

Stack trace:

#0 /var/www/html/ucuzu.az/App/Controllers/Web.php(393): Core\Error::errorHandler(8, 'Trying to get p...', '/var/www/html/u...', 393, Array)
#1 [internal function]: App\Controllers\Web->searchAction()
#2 /var/www/html/ucuzu.az/Core/Controller.php(48): call_user_func_array(Array, Array)
#3 /var/www/html/ucuzu.az/Core/Router.php(125): Core\Controller->__call('search', Array)
#4 /var/www/html/ucuzu.az/index.php(81): Core\Router->dispatch('web/search/drin...')
#5 {main}

Thrown in '/var/www/html/ucuzu.az/App/Controllers/Web.php' on line 393