MDL-8376 Course list option missing in frontpageloggedin when there are more than 200 courses
This commit is contained in:
+1
-1
@@ -1662,7 +1662,7 @@ class admin_setting_courselist_frontpage extends admin_setting_configselect {
|
||||
FRONTPAGECATEGORYNAMES => get_string('frontpagecategorynames'),
|
||||
FRONTPAGECATEGORYCOMBO => get_string('frontpagecategorycombo'),
|
||||
'' => get_string('none'));
|
||||
if (count_records("course") > FRONTPAGECOURSELIMIT) {
|
||||
if (!$loggedin and count_records("course") > FRONTPAGECOURSELIMIT) {
|
||||
unset($choices[FRONTPAGECOURSELIST]);
|
||||
}
|
||||
$defaults = FRONTPAGECOURSELIST.',,,';
|
||||
|
||||
Reference in New Issue
Block a user