From 1406dc47b31243ecf8e6a402c48432e8aa6a89e9 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Mon, 11 Dec 2017 16:01:14 +0100 Subject: [PATCH] Fix PHP warnings --- main/inc/lib/statistics.lib.php | 2 +- main/tracking/course_log_events.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/main/inc/lib/statistics.lib.php b/main/inc/lib/statistics.lib.php index 20170a10de..6461a7aebe 100644 --- a/main/inc/lib/statistics.lib.php +++ b/main/inc/lib/statistics.lib.php @@ -184,7 +184,7 @@ class Statistics * Count activities from track_e_default_table * @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 $track_e_default = Database::get_main_table(TABLE_STATISTIC_TRACK_E_DEFAULT); diff --git a/main/tracking/course_log_events.php b/main/tracking/course_log_events.php index 6dd4731ef5..c6ef268617 100644 --- a/main/tracking/course_log_events.php +++ b/main/tracking/course_log_events.php @@ -105,6 +105,7 @@ $column_model = array( $extra_params['autowidth'] = 'true'; // height auto $extra_params['height'] = 'auto'; +$actionLinks = ''; // Add the JS needed to use the jqgrid $htmlHeadXtra[] = api_get_jqgrid_js(); @@ -118,7 +119,7 @@ $(function() { $column_model, $extra_params, array(), - $action_links, + $actionLinks, true ).' }); @@ -147,7 +148,7 @@ $form = new FormValidator( 'get', api_get_self().'?'.api_get_cidreq(), '', - '', + [], FormValidator::LAYOUT_INLINE ); $form->addHidden('report', 'activities');