Commit ed2f5455 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix warning for undefined name when adding institutions

parent 80b50fea
......@@ -208,7 +208,7 @@ if ($institution || $add) {
),
);
if ($data->name != 'mahara') {
if (empty($data->name) || $data->name != 'mahara') {
$elements['defaultmembershipperiod'] = array(
'type' => 'expiry',
'title' => get_string('defaultmembershipperiod', 'admin'),
......
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