Fix PHP warnings

pull/2487/head
jmontoyaa 8 years ago
parent f46bf5a96e
commit 1406dc47b3
  1. 2
      main/inc/lib/statistics.lib.php
  2. 5
      main/tracking/course_log_events.php

@ -184,7 +184,7 @@ class Statistics
* Count activities from track_e_default_table * Count activities from track_e_default_table
* @return int Number of activities counted * @return int Number of activities counted
*/ */
public static function getNumberOfActivities($courseId = 0, $session = 0) public static function getNumberOfActivities($courseId = 0, $sessionId = 0)
{ {
// Database table definitions // Database table definitions
$track_e_default = Database::get_main_table(TABLE_STATISTIC_TRACK_E_DEFAULT); $track_e_default = Database::get_main_table(TABLE_STATISTIC_TRACK_E_DEFAULT);

@ -105,6 +105,7 @@ $column_model = array(
$extra_params['autowidth'] = 'true'; $extra_params['autowidth'] = 'true';
// height auto // height auto
$extra_params['height'] = 'auto'; $extra_params['height'] = 'auto';
$actionLinks = '';
// Add the JS needed to use the jqgrid // Add the JS needed to use the jqgrid
$htmlHeadXtra[] = api_get_jqgrid_js(); $htmlHeadXtra[] = api_get_jqgrid_js();
@ -118,7 +119,7 @@ $(function() {
$column_model, $column_model,
$extra_params, $extra_params,
array(), array(),
$action_links, $actionLinks,
true true
).' ).'
}); });
@ -147,7 +148,7 @@ $form = new FormValidator(
'get', 'get',
api_get_self().'?'.api_get_cidreq(), api_get_self().'?'.api_get_cidreq(),
'', '',
'', [],
FormValidator::LAYOUT_INLINE FormValidator::LAYOUT_INLINE
); );
$form->addHidden('report', 'activities'); $form->addHidden('report', 'activities');

Loading…
Cancel
Save