PhotoboothProject / photobooth

OpenSource Photobooth Webinterface
https://photoboothproject.github.io
MIT License
270 stars 58 forks source link

fix(DatabaseManagerService): fix unhandled type error #768

Closed andi34 closed 1 week ago

andi34 commented 1 week ago
Fatal error: Uncaught TypeError: 
Photobooth\Service\DatabaseManagerService::getContentFromDB():
Return value must be of type array, null returned in 
/var/www/html/src/Service/DatabaseManagerService.php:41 Stack trace: #0 
/var/www/html/template/components/main.defaults.php(8): 
Photobooth\Service\DatabaseManagerService->getContentFromDB()
#1 /var/www/html/template/components/main.head.php(9): include('...')
#2 /var/www/html/index.php(39): include('...') 
#3 {main} thrown
in /var/www/html/src/Service/DatabaseManagerService.php on line 41