]> git.mjollnir.org Git - moodle.git/commitdiff
Only force topic section in front page if ALL options are set to hide, not if we...
authormjollnir_ <mjollnir_>
Fri, 21 Apr 2006 03:09:58 +0000 (03:09 +0000)
committermjollnir_ <mjollnir_>
Fri, 21 Apr 2006 03:09:58 +0000 (03:09 +0000)
admin/site.php

index 5441b64b45a2b45a8408863c24acbe3dca3efcb5..17c40d5225cd5f9aa319c3593d779ca8214efe00 100644 (file)
@@ -33,7 +33,7 @@
             asort($form->frontpage);
             $form->frontpage = implode(',',array_flip($form->frontpage));
             set_config("frontpage", $form->frontpage);
-            if (!$form->frontpage) {
+            if ($form->frontpage == '') {
                 $form->numsections = 1;    // Force the topic display for this format
             }