skala
Juan Carlos Raña 13 years ago
commit 4d23a769d7
  1. 3
      main/inc/lib/groupmanager.lib.php
  2. 3
      main/inc/lib/main_api.lib.php
  3. 1
      main/inc/lib/template.lib.php

@ -1519,7 +1519,8 @@ class GroupManager {
$table_group=Database::get_course_table(TABLE_GROUP);
$user_id = Database::escape_string($user_id);
$course_id = api_get_course_int_id();
$sql_groups = 'SELECT name FROM '.$table_group.' g,'.$table_group_user.' gu WHERE g.c_id '.$course_id.' AND gu.user_id="'.$user_id.'" AND gu.group_id=g.id';
$sql_groups = 'SELECT name FROM '.$table_group.' g,'.$table_group_user.' gu
WHERE g.c_id = '.$course_id.' AND gu.user_id = "'.$user_id.'" AND gu.group_id = g.id';
$res = Database::query($sql_groups);
$groups=array();

@ -2499,6 +2499,7 @@ function api_not_allowed($print_headers = false) {
$show_headers = 1;
}
$tpl = new Template(null, $show_headers, $show_headers);
$tpl->assign('content', $msg);
@ -2506,7 +2507,7 @@ function api_not_allowed($print_headers = false) {
// if the access is not authorized and there is some login information
// but the cidReq is not found, assume we are missing course data and send the user
// to the user_portal
$tpl->display_blank_template();
$tpl->display_one_col_template();
exit;
}

@ -66,7 +66,6 @@ class Template extends Smarty {
* Displays an empty template
*/
function display_blank_template() {
$this->set_template_parameters();
$tpl = $this->get_template('layout/blank.tpl');
$this->display($tpl);
}

Loading…
Cancel
Save