Uncaught exception!

Calling Class: BBR\bbr_forum_threads_class.php
Exception class: index.php

#0 /home/bestbikingroads/public_html/forum/index.php(37): end()
#1 {main}

end(): Argument #1 ($array) must be of type array, null given