Commit 02b8e39d authored by Richard Mansfield's avatar Richard Mansfield

Don't display Institution Settings heading on edit user page when there are no institutions

parent 999f5d66
......@@ -418,6 +418,7 @@ if ($suspended) {
}
$smarty->assign('suspendform', $suspendform);
$smarty->assign('siteform', $siteform);
$smarty->assign('institutions', count($allinstitutions) > 1);
$smarty->assign('institutionform', $institutionform);
if ($id != $USER->get('id') && is_null($USER->get('parentuser'))) {
......
......@@ -16,8 +16,10 @@
{$suspendform}
<h3>{str tag="siteaccountsettings" section="admin"}</h3>
{$siteform}
{if ($institutions)}
<h3>{str tag="institutionsettings" section="admin"}</h3>
{$institutionform}
{/if}
</div>
{include file="columnfullend.tpl"}
{include file="footer.tpl"}
......
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