A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: home/home_controller.php

Line Number: 51

Fatal error: Call to a member function getId() on a non-object in /var/www/vhosts/avisosclasificados.com/httpdocs/application/controllers/home/home_controller.php on line 51