MDL-8376 Course list option missing in frontpageloggedin when there are more than 200 courses

This commit is contained in:
skodak
2007-01-31 22:38:27 +00:00
parent c785d40ac3
commit 9fec4e331b
+1 -1
View File
@@ -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.',,,';