]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17251 foxed incorrect set_field
authorskodak <skodak>
Mon, 17 Nov 2008 07:55:10 +0000 (07:55 +0000)
committerskodak <skodak>
Mon, 17 Nov 2008 07:55:10 +0000 (07:55 +0000)
admin/modules.php

index 5eedcaf508c160c379001ab924d7393e815e00e5..ba2b5addcc35ec92f44ba1e6f4dd670b674a34d3 100644 (file)
@@ -58,8 +58,7 @@
             print_error('moduledoesnotexist', 'error');
         }
         $DB->set_field("modules", "visible", "1", array("id"=>$module->id)); // Show main module
-        $DB->set_field('course_modules', 'visible', '1', 'visibleold',
-                  '1', array('module'=>$module->id)); // Get the previous saved visible state for the course module.
+        $DB->set_field('course_modules', 'visible', '1', array('visibleold'=>1, 'module'=>$module->id)); // Get the previous saved visible state for the course module.
         // clear the course modinfo cache for courses
         // where we just made something visible
         $sql = "UPDATE {course}