From 73f27e1656055431673bf9c340316013f6fd1e39 Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 17 Nov 2008 07:55:10 +0000 Subject: [PATCH] MDL-17251 foxed incorrect set_field --- admin/modules.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/admin/modules.php b/admin/modules.php index 5eedcaf508..ba2b5addcc 100644 --- a/admin/modules.php +++ b/admin/modules.php @@ -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} -- 2.39.5