aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/icon.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-29 18:51:23 -0700
committerCash Costello <cash.costello@gmail.com>2012-06-29 18:51:23 -0700
commit919cc3b9cc851d7746f7cecce09670ebfd87bd85 (patch)
tree41fa80a1b48b3412b68e86f01d3e0238f9a7bc19 /mod/groups/icon.php
parent5f89696ee75400f59ad895758efe046ed8fbe87f (diff)
parentb05caab768f9e1c4cbef4af87670dc87ef4d529f (diff)
downloadelgg-919cc3b9cc851d7746f7cecce09670ebfd87bd85.tar.gz
elgg-919cc3b9cc851d7746f7cecce09670ebfd87bd85.tar.bz2
Merge pull request #288 from mrclay/4634-group-icons-2
Fixes #4634: Restores pre 1.7 group profile pics after update
Diffstat (limited to 'mod/groups/icon.php')
-rw-r--r--mod/groups/icon.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/groups/icon.php b/mod/groups/icon.php
index f86f84fa5..1bd240ea6 100644
--- a/mod/groups/icon.php
+++ b/mod/groups/icon.php
@@ -8,7 +8,13 @@
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
$group_guid = get_input('group_guid');
+
+/* @var ElggGroup $group */
$group = get_entity($group_guid);
+if (!($group instanceof ElggGroup)) {
+ header("HTTP/1.1 404 Not Found");
+ exit;
+}
// If is the same ETag, content didn't changed.
$etag = $group->icontime . $group_guid;