Minor - format code

pull/2487/head
jmontoyaa 9 years ago
parent 1a5ab17e8a
commit 92448753ad
  1. 3
      main/course_home/course_home.php
  2. 2
      main/inc/global.inc.php
  3. 4
      main/inc/lib/chamilo_session.class.php

@ -31,7 +31,6 @@ use ChamiloSession as Session;
*/
$use_anonymous = true;
require_once __DIR__.'/../inc/global.inc.php';
$htmlHeadXtra[] ='<script>
@ -178,10 +177,10 @@ if (isset($_GET['action']) && $_GET['action'] == 'subscribe') {
}
}
}
/* Is the user allowed here? */
api_protect_course_script(true);
/* STATISTICS */
if (!isset($coursesAlreadyVisited[$course_code])) {

@ -194,7 +194,7 @@ if (!empty($_configuration['multiple_access_urls'])) {
$charset = 'UTF-8';
// Enables the portablity layer and configures PHP for UTF-8
// Enables the portability layer and configures PHP for UTF-8
\Patchwork\Utf8\Bootup::initAll();
// Start session after the internationalization library has been initialized.

@ -69,8 +69,6 @@ class ChamiloSession extends System\Session
*/
static function start($already_installed = true)
{
global $_configuration;
/*
* Prevent Session fixation bug fixes
* See http://support.chamilo.org/issues/3600
@ -112,7 +110,7 @@ class ChamiloSession extends System\Session
}*/
// If the session time has expired, refresh the starttime value,
// so we're starting to count down from a later time
if ( $session->has('starttime') && $session->is_expired()) {
if ($session->has('starttime') && $session->is_expired()) {
$session->destroy();
} else {
//error_log('Time not expired, extend session for a bit more');

Loading…
Cancel
Save