Participants page DB connect fix
parent
7a1f2b841e
commit
ade26b7267
|
@ -3,7 +3,13 @@
|
||||||
require '../app/classes/participant.php';
|
require '../app/classes/participant.php';
|
||||||
|
|
||||||
// connect to database
|
// 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
|
// specify time range
|
||||||
include '../app/helpers/time_range.php';
|
include '../app/helpers/time_range.php';
|
||||||
|
|
Loading…
Reference in New Issue