From: scyrma Date: Tue, 29 Jul 2008 02:35:17 +0000 (+0000) Subject: MDL-14679: small fix for problem following db migration X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1101dac08d8227e971589061a8e6f9285e488b3a;p=moodle.git MDL-14679: small fix for problem following db migration --- diff --git a/course/editsection.php b/course/editsection.php index 97da43f1f4..f5a090c0a2 100644 --- a/course/editsection.php +++ b/course/editsection.php @@ -24,7 +24,7 @@ $timenow = time(); - if ($DB->set_field("course_sections", "summary", $form->summary, array("id"=>$section->id))) { + if (!$DB->set_field("course_sections", "summary", $form->summary, array("id"=>$section->id))) { print_error("cannotupdatesummary"); }