]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes fatal error in groups/add page.
authorSteve Clay <steve@mrclay.org>
Wed, 5 Dec 2012 14:45:31 +0000 (09:45 -0500)
committerSteve Clay <steve@mrclay.org>
Wed, 5 Dec 2012 14:45:31 +0000 (09:45 -0500)
mod/groups/views/default/forms/groups/edit.php

index 7a740b8783d234ced78c2c4b33881e39c0189386..41d97e6c31b209227bdbf0b455c37b7369a7b64e 100644 (file)
@@ -147,7 +147,7 @@ if ($tools) {
 <div class="elgg-foot">
 <?php
 
-if (isset($entity)) {
+if ($entity) {
        echo elgg_view('input/hidden', array(
                'name' => 'group_guid',
                'value' => $entity->getGUID(),
@@ -156,7 +156,7 @@ if (isset($entity)) {
 
 echo elgg_view('input/submit', array('value' => elgg_echo('save')));
 
-if (isset($entity)) {
+if ($entity) {
        $delete_url = 'action/groups/delete?guid=' . $entity->getGUID();
        echo elgg_view('output/confirmlink', array(
                'text' => elgg_echo('groups:delete'),