You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$withoutSpecialCourses = ' AND c.code NOT IN ("'.implode('","',$specialCourseList).'")';
4377
+
}
4378
+
4379
+
if (!empty($accessUrlId) && $accessUrlId == intval($accessUrlId)) {
4380
+
$sql = "SELECT count(id) FROM $tableCourse c, $tableCourseRelAccessUrl u WHERE c.code = u.course_code AND u.access_url_id = $accessUrlId AND c.visibility != 0 AND c.visibility != 4 $withoutSpecialCourses";
4381
+
}
4382
+
$res = Database::query($sql);
4383
+
$row = Database::fetch_row($res);
4384
+
return$row[0];
4385
+
}
4362
4386
4363
4387
/**
4364
4388
* Return a link to go to the course, validating the visibility of the
0 commit comments