Fix conference page db connection

main
Yasen Pramatarov 2024-11-12 12:51:33 +02:00
parent c5e123ea2f
commit 7a1f2b841e
1 changed files with 7 additions and 1 deletions

View File

@ -3,7 +3,13 @@
require '../app/classes/conference.php';
// connect to database
$db = connectDB($config, 'jilo', $platformDetails[0]['jilo_database'], $platform_id);
$response = connectDB($config, 'jilo', $platformDetails[0]['jilo_database'], $platform_id);
if ($response['db'] === null) {
$error = $response['error'];
include '../app/templates/block-message.php';
} else {
$db = $response['db'];
}
// specify time range
include '../app/helpers/time_range.php';