Redirect empty group to /contacts.
The empty /group page is not really doing anything, redirect to /contacts.
This commit is contained in:
parent
7211fc4f1a
commit
5765b8d498
1 changed files with 4 additions and 0 deletions
|
@ -85,6 +85,10 @@ function group_content(App $a) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Switch to text mode interface if we have more than 'n' contacts or group members
|
// 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');
|
$switchtotext = PConfig::get(local_user(), 'system', 'groupedit_image_limit');
|
||||||
if (is_null($switchtotext)) {
|
if (is_null($switchtotext)) {
|
||||||
|
|
Loading…
Reference in a new issue