Add intval to GET parameter - 1.10.x

1.10.x
Imanol Losada 10 years ago
parent b34ca336f5
commit e35b566500
  1. 2
      main/admin/statistics/index.php

@ -82,7 +82,7 @@ switch ($_REQUEST['report']) {
case 'users':
// total amount of users
$teachers = $students = array();
$countInvisible = isset($_GET['count_invisible_courses']) ? $_GET['count_invisible_courses'] : null;
$countInvisible = isset($_GET['count_invisible_courses']) ? intval($_GET['count_invisible_courses']) : null;
Statistics::printStats(
get_lang('NumberOfUsers'),
array(

Loading…
Cancel
Save