Fixes comments
parent
b18cca8075
commit
da08ad54ca
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue