Minor - removing global value.

1.9.x
Julio Montoya 11 years ago
parent cbae5fba11
commit 910714a433
  1. 7
      main/admin/course_request_accepted.php

@ -41,7 +41,6 @@ $course_validation_feature = api_get_setting('course_validation') == 'true';
$delete_course_request = intval($_GET['delete_course_request']);
$message = trim(Security::remove_XSS(stripslashes(urldecode($_GET['message']))));
$is_error_message = !empty($_GET['is_error_message']);
$keyword = Database::escape_string(trim($_GET['keyword']));
if ($course_validation_feature) {
@ -99,12 +98,8 @@ function get_number_of_requests() {
* Get course data to display
*/
function get_request_data($from, $number_of_items, $column, $direction) {
global $keyword;
$keyword = Database::escape_string(trim($_GET['keyword']));
$course_request_table = Database :: get_main_table(TABLE_MAIN_COURSE_REQUEST);
$users_table = Database :: get_main_table(TABLE_MAIN_USER);
$course_users_table = Database :: get_main_table(TABLE_MAIN_COURSE_USER);
$sql = "SELECT id AS col0,
code AS col1,
title AS col2,

Loading…
Cancel
Save