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

This commit is contained in:
skodak
2007-01-31 22:38:45 +00:00
parent de161d3c49
commit 1d03d41680
+1 -1
View File
@@ -1578,7 +1578,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.',,,';