Commit 81f13973 authored by Nigel McNie's avatar Nigel McNie
Browse files

Fix notice when configuring an institution while only one theme is installed in the system.

This was only causing noise, there was no breakage caused because of it.
parent 396c6dce
......@@ -418,7 +418,7 @@ function institution_submit(Pieform $form, $values) {
}
else {
$message = get_string('institutionupdatedsuccessfully', 'admin');
if ($oldtheme != $values['theme']
if (isset($values['theme']) && $oldtheme != $values['theme']
&& (!empty($oldtheme) || $values['theme'] != 'sitedefault')) {
$message .= ' ' . get_string('usersseenewthemeonlogin', 'admin');
}
......
Supports Markdown
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