Notice: Undefined offset: 0 in C:\xampp\htdocs\devbep\Collection.php on line 22

Fatal error: Call to a member function gettitle() on null in C:\xampp\htdocs\devbep\detailPage.php on line 23