minor remove warnings

skala
Laurent Opprecht 13 years ago
parent fc1dff7906
commit 6e3863b699
  1. 10
      main/inc/lib/chamilo_session.class.php
  2. 3
      main/inc/local.inc.php

@ -5,7 +5,15 @@
* *
* Usage: * Usage:
* *
* Chamilo::session()-> *
* use ChamiloSession as Session;
*
* Session::read('name');
*
* Or
*
* Chamilo::session()->...
* session()->...
* *
* @license see /license.txt * @license see /license.txt
* @author Laurent Opprecht <laurent@opprecht.info> for the Univesity of Geneva * @author Laurent Opprecht <laurent@opprecht.info> for the Univesity of Geneva

@ -981,6 +981,7 @@ if ((isset($uidReset) && $uidReset) || (isset($cidReset) && $cidReset)) {
$is_courseMember = true; $is_courseMember = true;
$is_courseTutor = false; $is_courseTutor = false;
$is_courseAdmin = false; $is_courseAdmin = false;
$is_courseCoach = false;
$is_sessionAdmin = false; $is_sessionAdmin = false;
Session::write('_courseUser',$_courseUser); Session::write('_courseUser',$_courseUser);
break; break;
@ -990,6 +991,7 @@ if ((isset($uidReset) && $uidReset) || (isset($cidReset) && $cidReset)) {
$is_courseTutor = false; $is_courseTutor = false;
$is_courseAdmin = false; $is_courseAdmin = false;
$is_sessionAdmin = false; $is_sessionAdmin = false;
$is_courseCoach = false;
Session::erase('_courseUser'); Session::erase('_courseUser');
break; break;
} }
@ -999,6 +1001,7 @@ if ((isset($uidReset) && $uidReset) || (isset($cidReset) && $cidReset)) {
$is_courseTutor = false; $is_courseTutor = false;
$is_courseAdmin = false; $is_courseAdmin = false;
$is_sessionAdmin = false; $is_sessionAdmin = false;
$is_courseCoach = false;
Session::erase('_courseUser'); Session::erase('_courseUser');
} }
} }

Loading…
Cancel
Save