mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-10433 Upgrade: undo_groupings() causes warnings (before groupings exist)
This commit is contained in:
parent
11d97de1b2
commit
68d2023487
@ -854,7 +854,7 @@ function xmldb_main_upgrade($oldversion=0) {
|
||||
}
|
||||
|
||||
if ($result && $oldversion < 2007051101) {
|
||||
if (empty($CFG->enablegroupings)) {
|
||||
if (empty($CFG->enablegroupings) and !empty($CFG->group_version)) {
|
||||
// delete all groupings - they do not work yet :-(
|
||||
// while keeping all existing groups
|
||||
require_once("$CFG->dirroot/group/db/upgrade.php");
|
||||
|
Loading…
x
Reference in New Issue
Block a user