Commit 2e2d415b authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

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

parents 408843ed c31c81c7
......@@ -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