]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8376 Course list option missing in frontpageloggedin when there are more than...
authorskodak <skodak>
Wed, 31 Jan 2007 22:38:27 +0000 (22:38 +0000)
committerskodak <skodak>
Wed, 31 Jan 2007 22:38:27 +0000 (22:38 +0000)
lib/adminlib.php

index 083fe16e0c116dfccd9e3252a87445411d776196..cc62831788208d2f6186b475f7efc8d857fa6003 100644 (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.',,,';