Skip to content

Commit

Permalink
IOMAD: php 8.0 throws warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
turf212 committed Jun 2, 2023
1 parent 1f39409 commit dddd2ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions local/iomad/lib/iomad.php
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ public static function get_user_sqlsearch($params, $idlist='', $sort = "", $dir=
*
* Return array();
**/
public static function get_course_summary_info($departmentid, $courseid=0, $showsuspended) {
public static function get_course_summary_info($departmentid, $courseid=0, $showsuspended=1) {
global $DB;

// Create a temporary table to hold the userids.
Expand Down Expand Up @@ -1285,7 +1285,7 @@ public static function get_all_user_course_completion_data($searchinfo, $page=0,
*
* Return array();
**/
public static function get_user_license_sqlsearch($params, $idlist='', $sort, $dir, $departmentid, $licenses=false) {
public static function get_user_license_sqlsearch($params, $idlist='', $sort='lastname', $dir='ASC', $departmentid=null, $licenses=false) {
global $DB, $CFG;

if (!empty($params['courseid']) && $params['courseid'] == 1) {
Expand Down

0 comments on commit dddd2ac

Please sign in to comment.