Commit 9c0894f8 authored by Ruslan Kabalin's avatar Ruslan Kabalin
Browse files

Fixed warning in institution editing page.



Institution expiry field is only availble to site admins.
Signed-off-by: default avatarRuslan Kabalin <ruslan.kabalin@luns.net.uk>
parent ea37d115
......@@ -385,10 +385,10 @@ function institution_submit(Pieform $form, $values) {
}
$newinstitution->theme = (empty($values['theme']) || $values['theme'] == 'sitedefault') ? null : $values['theme'];
if ($institution != 'mahara') {
$newinstitution->expiry = db_format_timestamp($values['expiry']);
$newinstitution->defaultmembershipperiod = ($values['defaultmembershipperiod']) ? intval($values['defaultmembershipperiod']) : null;
if ($USER->get('admin')) {
$newinstitution->maxuseraccounts = ($values['maxuseraccounts']) ? intval($values['maxuseraccounts']) : null;
$newinstitution->expiry = db_format_timestamp($values['expiry']);
}
}
......
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