Minor - format code.

1.9.x
Julio Montoya 12 years ago
parent d2a59fe0cd
commit 036ff48640
  1. 4
      main/admin/usergroups.php
  2. 5
      main/inc/ajax/model.ajax.php

@ -18,7 +18,7 @@ api_protect_admin_script(true);
$htmlHeadXtra[] = api_get_jqgrid_js();
// setting breadcrumbs
$interbreadcrumb[] = array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
$action = $_GET['action'];
$action = isset($_GET['action']) ? $_GET['action'] : null;
if ($action == 'add') {
$interbreadcrumb[] = array('url' => 'usergroups.php','name' => get_lang('Classes'));
$interbreadcrumb[] = array('url' => '#','name' => get_lang('Add'));
@ -30,7 +30,7 @@ if ($action == 'add') {
}
// The header.
Display::display_header($tool_name);
Display::display_header();
// Tool name
if (isset($_GET['action']) && $_GET['action'] == 'add') {

@ -996,6 +996,7 @@ switch ($action) {
$columns = array('name', 'users', 'actions');
$options = array('order'=>"name $sord", 'LIMIT'=> "$start , $limit");
$options['course_id'] = $course_id;
switch ($type) {
case 'not_registered':
$options['where'] = array(" (course_id IS NULL OR course_id != ?) " => $course_id);
@ -1017,8 +1018,8 @@ switch ($action) {
$url = 'class.php?action=add_class_to_course&id='.$group['id'];
$icon = Display::return_icon('add.png', get_lang('Add'));
}
$group['actions'] = Display::url($icon, $url);
$new_result[] = $group;
$group['actions'] = Display::url($icon, $url);
$new_result[] = $group;
}
$result = $new_result;
}

Loading…
Cancel
Save