Domain Counts add-on application broken

whut

Active Member
Dec 23, 2022
358
46
28
I noticed the add-on application domain counts is broken.

Fatal error: Uncaught Error: Call to a member function select() on null in /var/www/fusionpbx/resources/header.php:79 Stack trace: #0 /var/www/fusionpbx/app/domain_counts/domain_counts.php(199): require_once() #1 {main} thrown in /var/www/fusionpbx/resources/header.php on line 79

I don't have the time to fix the code. Does someone have time to fix? It looks like it needs more than fixing the error with improved standards and redundancy fixes.
PHP:
require_once "resources/check_auth.php";
is on lines 29, 33, 36 as one simple example.