An uncaught Exception was encountered

Type: TypeError

Message: count(): Argument #1 ($value) must be of type Countable|array, stdClass given

Filename: /home/madrasah1/public_html/__app/controllers/Album.php

Line Number: 58

Backtrace:

File: /home/madrasah1/public_html/index.php
Line: 316
Function: require_once