Commit c31c81c7 authored by Robert Lyon's avatar Robert Lyon

Bug 1501078: When sitethemeprefs is false / no theme select box

Need to check that $values['theme'] variable exists

behatnotneeded

Change-Id: Iba75b8306abdb01d876f4f402fc0a01a9bd2d49b
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 62a78811
......@@ -239,7 +239,7 @@ function accountprefs_submit(Pieform $form, $values) {
}
}
if ($values['theme'] == 'sitedefault') {
if (isset($values['theme']) && $values['theme'] == 'sitedefault') {
$USER->set_account_preference('theme', '');
}
......
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