Fixes comments

main
Yasen Pramatarov 2024-12-03 11:10:43 +02:00
parent b18cca8075
commit da08ad54ca
1 changed files with 6 additions and 14 deletions

View File

@ -14,22 +14,20 @@ require '../app/classes/participant.php';
// connect to database
$response = connectDB($config, 'jilo', $platformDetails[0]['jilo_database'], $platform_id);
// if DB connection has error, display it and stop here
if ($response['db'] === null) {
$error = $response['error'];
include '../app/templates/block-message.php';
// otherwise if DB connection is OK, go on
} else {
$db = $response['db'];
//
// dashboard widget listings
//
////
// monthly usage
$conferenceObject = new Conference($db);
$participantObject = new Participant($db);
/**
* Monthly usage statistics for the last year.
*
@ -95,9 +93,6 @@ if ($response['db'] === null) {
include '../app/templates/widget-monthly.php';
////
// conferences in last 2 days
/**
* Conferences in the last 2 days.
*
@ -160,9 +155,6 @@ if ($response['db'] === null) {
include '../app/templates/widget.php';
////
// last 10 conferences
/**
* Last 10 conferences.
*