summaryrefslogtreecommitdiff
path: root/actions/grouplogo.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/grouplogo.php')
-rw-r--r--actions/grouplogo.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/actions/grouplogo.php b/actions/grouplogo.php
index 3c9b56296..f414a23cc 100644
--- a/actions/grouplogo.php
+++ b/actions/grouplogo.php
@@ -92,7 +92,10 @@ class GrouplogoAction extends GroupDesignAction
if ($groupid) {
$this->group = User_group::staticGet('id', $groupid);
} else {
- $this->group = User_group::staticGet('nickname', $nickname);
+ $local = Local_group::staticGet('nickname', $nickname);
+ if ($local) {
+ $this->group = User_group::staticGet('id', $local->group_id);
+ }
}
if (!$this->group) {