From b00e6e822a6aa5108d3e49bf6b675c286a265d34 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Thu, 24 Aug 2017 11:29:02 -0500 Subject: [PATCH] Minor - Remote E_NOTICE - refs BT#13232 --- main/session/session_course_list.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/session/session_course_list.php b/main/session/session_course_list.php index acb2c405c9..abb34dd27c 100644 --- a/main/session/session_course_list.php +++ b/main/session/session_course_list.php @@ -23,9 +23,9 @@ if (empty($id_session)) { api_not_allowed(); } -$page = intval($_GET['page']); -$action = $_REQUEST['action']; -$sort = in_array($_GET['sort'], array('title', 'nbr_users')) ? $_GET['sort'] : 'title'; +$page = isset($_GET['page']) ? intval($_GET['page']) : 0; +$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; +$sort = isset($_GET['sort']) && in_array($_GET['sort'], array('title', 'nbr_users')) ? $_GET['sort'] : 'title'; $result = Database::query("SELECT name FROM $tbl_session WHERE id='$id_session'");