diff --git a/app/pages/participants.php b/app/pages/participants.php index b353019..ef042a1 100644 --- a/app/pages/participants.php +++ b/app/pages/participants.php @@ -8,12 +8,6 @@ * Supports pagination. */ -// Get any new messages -include '../app/includes/messages.php'; -include '../app/includes/messages-show.php'; - -require '../app/classes/participant.php'; - // connect to database $response = connectDB($config, 'jilo', $platformDetails[0]['jilo_database'], $platform_id); @@ -74,6 +68,7 @@ if ($response['db'] === null) { // Participant listings // + require '../app/classes/participant.php'; $participantObject = new Participant($db); // pagination variables @@ -167,13 +162,17 @@ if ($response['db'] === null) { // filter message $filterMessage = array(); if (isset($_REQUEST['name']) && $_REQUEST['name'] != '') { - array_push($filterMessage, 'Conferences with participant name (stats_id) matching "' . $_REQUEST['name'] . '"'); + array_push($filterMessage, 'Conferences with participant name (stats_id) matching "' . $_REQUEST['name'] . '"'); } elseif (isset($_REQUEST['id']) && $_REQUEST['id'] != '') { - array_push($filterMessage, 'Conferences with participant ID matching "' . $_REQUEST['id'] . '"'); + array_push($filterMessage, 'Conferences with participant ID matching "' . $_REQUEST['id'] . '"'); } elseif (isset($participantIp)) { - array_push($filterMessage, 'Conferences with participant IP matching "' . $participantIp . '"'); + array_push($filterMessage, 'Conferences with participant IP matching "' . $participantIp . '"'); } + // Get any new messages + include '../app/includes/messages.php'; + include '../app/includes/messages-show.php'; + // display the widget include '../app/templates/participants.php';