From 6f3570ffec75bfa44b047c211e6ad14c1af61e41 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Tue, 20 Mar 2012 10:34:30 +1300 Subject: [PATCH] MDL-19125 upgrade: Fixed assignment typo --- lib/db/upgrade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index dedb1bf975d..a77878fdab9 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -214,9 +214,9 @@ function xmldb_main_upgrade($oldversion) { if ($oldversion < 2012031500.01) { // Upgrade old course_allowed_modules data to be permission overrides. - if ($CFG->restrictmodulesfor = 'all') { + if ($CFG->restrictmodulesfor === 'all') { $courses = $DB->get_records_menu('course', array(), 'id', 'id, 1'); - } else if ($CFG->restrictmodulesfor = 'requested') { + } else if ($CFG->restrictmodulesfor === 'requested') { $courses = $DB->get_records_menu('course', array('retrictmodules' => 1), 'id', 'id, 1'); } else { $courses = array();