Commit dd1bb90d authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review

Merge "Checking if variables exist before trying access them (Bug #1250239)"

parents 91704669 94b2f372
......@@ -640,8 +640,8 @@ function institution_submit(Pieform $form, $values) {
$newinstitution->registerconfirm = ($values['registerconfirm']) ? 1 : 0;
}
$newinstitution->theme = (empty($values['theme']) || $values['theme'] == 'sitedefault') ? null : $values['theme'];
$newinstitution->dropdownmenu = ($values['dropdownmenu']) ? 1 : 0;
$newinstitution->skins = ($values['skins']) ? 1 : 0;
$newinstitution->dropdownmenu = (!empty($values['dropdownmenu'])) ? 1 : 0;
$newinstitution->skins = (!empty($values['skins'])) ? 1 : 0;
if ($newinstitution->theme == 'custom') {
if (!empty($oldinstitution->style)) {
......
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