]> git.mxchange.org Git - friendica.git/blobdiff - mod/group.php
.
[friendica.git] / mod / group.php
old mode 100755 (executable)
new mode 100644 (file)
index a282dbc..13a899e
@@ -82,7 +82,10 @@ function group_content(&$a) {
                $switchtotext = 400;
 
        $tpl = get_markup_template('group_edit.tpl');
-       $context = array('$submit' => t('Submit'));
+
+       $context = array(
+                       '$submit' => t('Submit'),
+       );
 
        if(($a->argc == 2) && ($a->argv[1] === 'new')) {
                
@@ -217,15 +220,16 @@ function group_content(&$a) {
                }
        }
 
-       $context['$groupeditor'] = $groupeditor;
        $context['$desc'] = t('Click on a contact to add or remove.');
 
        if($change) {
+               $context['$groupeditor'] = $groupeditor;
                $tpl = get_markup_template('groupeditor.tpl');
                echo replace_macros($tpl, $context);
                killme();
        }
        
+       $context['$groupedit_info'] = $groupeditor;
        return replace_macros($tpl, $context);
 
 }