Merge pull request #5346 from astifter/redirect_empty_group_to_contacts

Redirect empty group to /contacts.
This commit is contained in:
Hypolite Petovan 2018-07-09 08:26:39 -04:00 committed by GitHub
commit 3a179860e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,10 @@ function group_content(App $a) {
}
// Switch to text mode interface if we have more than 'n' contacts or group members
if ($a->argc == 1) {
goaway(System::baseUrl() . '/contacts');
}
$switchtotext = PConfig::get(local_user(), 'system', 'groupedit_image_limit');
if (is_null($switchtotext)) {