From: skodak Date: Wed, 31 Jan 2007 22:38:27 +0000 (+0000) Subject: MDL-8376 Course list option missing in frontpageloggedin when there are more than... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9fec4e331b93b2f7774803fd36af6cef4451861d;p=moodle.git MDL-8376 Course list option missing in frontpageloggedin when there are more than 200 courses --- diff --git a/lib/adminlib.php b/lib/adminlib.php index 083fe16e0c..cc62831788 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -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.',,,';