aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2013-01-08 09:01:20 -0800
committerBrett Profitt <brett.profitt@gmail.com>2013-01-08 09:01:20 -0800
commit2640c73760721f0c93043a7dfe1540907aa95452 (patch)
treec5c3a63db690873eb396dff1ff161973a5a82ceb /mod
parent41a4e14255894874be61347e3c65ced96e38b386 (diff)
parent5fdacb4b36d351998d96693d3d35218ee91a70ff (diff)
downloadelgg-2640c73760721f0c93043a7dfe1540907aa95452.tar.gz
elgg-2640c73760721f0c93043a7dfe1540907aa95452.tar.bz2
Merge pull request #472 from sembrestels/groups-summary-owner
Checking if we have an owner in group profile summary before using it.
Diffstat (limited to 'mod')
-rw-r--r--mod/groups/views/default/groups/profile/summary.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/groups/views/default/groups/profile/summary.php b/mod/groups/views/default/groups/profile/summary.php
index 54abcb1e5..6eca9745e 100644
--- a/mod/groups/views/default/groups/profile/summary.php
+++ b/mod/groups/views/default/groups/profile/summary.php
@@ -15,6 +15,10 @@ if (!isset($vars['entity']) || !$vars['entity']) {
$group = $vars['entity'];
$owner = $group->getOwnerEntity();
+if (!$owner) {
+ return true;
+}
+
?>
<div class="groups-profile clearfix elgg-image-block">
<div class="elgg-image">