Minor - cosmetic changes

skala
Julio Montoya 16 years ago
parent f8952f4784
commit 35270a645f
  1. 15
      main/admin/resume_session.php

@ -1,21 +1,17 @@
<?php // $Id: resume_session.php 20709 2009-05-15 19:12:37Z ivantcholakov $ <?php
/* For licensing terms, see /dokeos_license.txt */ /* For licensing terms, see /license.txt */
/** /**
==============================================================================
* @author Bart Mollet * @author Bart Mollet
* @package dokeos.admin * @package chamilo.admin
==============================================================================
*/ */
/* /*
==============================================================================
INIT SECTION INIT SECTION
==============================================================================
*/ */
// name of the language file that needs to be included // name of the language file that needs to be included
$language_file = 'admin'; $language_file = 'admin';
$cidReset = true; $cidReset = true;
require '../inc/global.inc.php'; require_once '../inc/global.inc.php';
// setting the section (for the tabs) // setting the section (for the tabs)
$this_section=SECTION_PLATFORM_ADMIN; $this_section=SECTION_PLATFORM_ADMIN;
@ -49,8 +45,7 @@ $rs = Database::query($sql);
$session = Database::store_result($rs); $session = Database::store_result($rs);
$session = $session[0]; $session = $session[0];
if(!api_is_platform_admin() && $session['session_admin_id']!=$_user['user_id']) if(!api_is_platform_admin() && $session['session_admin_id']!=$_user['user_id']) {
{
api_not_allowed(true); api_not_allowed(true);
} }

Loading…
Cancel
Save