Browse Source

Minor - format code.

Julio Montoya 9 years ago
parent
commit
958d1edb5d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main/group/group_creation.php

+ 2 - 1
main/group/group_creation.php

@@ -123,6 +123,7 @@ if (isset($_POST['number_of_groups'])) {
 		}
 		$group_categories = GroupManager::get_categories();
 		$group_id = GroupManager :: get_number_of_groups() + 1;
+		$cat_options = [];
 		foreach ($group_categories as $index => $category) {
 			$cat_options[$category['id']] = $category['title'];
 		}
@@ -270,7 +271,7 @@ EOT;
 		$create_class_groups_form->addElement('hidden', 'action');
 		if (api_get_setting('allow_group_categories') == 'true') {
 			$group_categories = GroupManager :: get_categories();
-			$cat_options = array ();
+			$cat_options = array();
 			foreach ($group_categories as $index => $category) {
 				$cat_options[$category['id']] = $category['title'];
 			}