Notice: Trying to get property of non-object in /home/a/altairauto/altairauto2018/system/modules/news/widgets/Widget.php on line 16

Fatal error: Uncaught Error: Call to a member function from() on null in /home/a/altairauto/altairauto2018/system/modules/news/widgets/Widget.php:16 Stack trace: #0 /home/a/altairauto/altairauto2018/system/modules/news/controllers/Index.php(23): modules\news\widgets\Widget->ShowLastNews(5, 'lastnews.php', 1) #1 [internal function]: modules\news\controllers\Index->actionIndex() #2 /home/a/altairauto/altairauto2018/system/core/Controller.php(189): call_user_func_array(Array, Array) #3 /home/a/altairauto/altairauto2018/system/core/Controller.php(70): core\Controller->runAction('index') #4 /home/a/altairauto/altairauto2018/system/core/App.php(307): core\Controller->run() #5 /home/a/altairauto/altairauto2018/system/core/App.php(156): core\App->findController() #6 /home/a/altairauto/altairauto2018/system/core/App.php(100): core\App->run() #7 /home/a/altairauto/altairauto2018/system/core/App.php(67): core\App->__construct() #8 /home/a/altairauto/altairauto2018/public_html/index.php(10): core\App::instance() #9 {main} thrown in /home/a/altairauto/altairauto2018/system/modules/news/widgets/Widget.php on line 16