From cef053ae9e96fe144d59999f6ae673899d070029 Mon Sep 17 00:00:00 2001 From: Robert Lyon Date: Fri, 16 Oct 2015 12:44:23 +1300 Subject: [PATCH] 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 (cherry picked from commit c31c81c7711888bed3801d6a5f470824dcd21845) --- htdocs/account/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/account/index.php b/htdocs/account/index.php index d22e3dc3e3..180c566da4 100644 --- a/htdocs/account/index.php +++ b/htdocs/account/index.php @@ -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', ''); } -- GitLab