Commit ddd0ac8a authored by Robert Lyon's avatar Robert Lyon

Bug 1814954: Getting "Undefined index: artefactid" on upgrade

Due to checking for a null array vaue incorrectly

behatnotneeded

Change-Id: Iac2d98878f9baea098af6661d08a4d2dcc6be30b
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 637fa264
......@@ -890,7 +890,8 @@ function xmldb_core_upgrade($oldversion=0) {
$configdata['artefactids'] = array($configdata['artefactid']);
unset($configdata['artefactid']);
}
else if (is_null($configdata['artefactid'])) {
else if (array_key_exists('artefactid', $configdata)) {
// Key exists and value is NULL
$configdata['artefactids'] = array();
unset($configdata['artefactid']);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment