Update first.'; } elseif (intval($config_client_portal_enable) !== 1) { $refuse = 'The client portal is off - turn it on in Admin > Settings > Modules.'; } elseif ($client['client_archived_at']) { $refuse = 'This client is archived - restore it to invite people.'; } elseif (!portalMailReady()) { $refuse = 'Outgoing mail isn\'t set up, so an invite can\'t be sent - set it up in Admin > Settings > Mail.'; } if ($refuse !== '') { ?>