From 5765b8d498304e8bff0a6ea486138b62f4292043 Mon Sep 17 00:00:00 2001 From: Andreas Neustifter Date: Sun, 8 Jul 2018 21:20:18 +0200 Subject: [PATCH] Redirect empty group to /contacts. The empty /group page is not really doing anything, redirect to /contacts. --- mod/group.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mod/group.php b/mod/group.php index 726616a90f..331b694874 100644 --- a/mod/group.php +++ b/mod/group.php @@ -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)) {