<?php
/***************************************************************************
- * Copyright (C) 2003-2010 Polytechnique.org *
+ * Copyright (C) 2003-2011 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
global $globals;
$id = Cookie::i('uid', -1);
- $id = S::v($_SESSION['uid'], $id);
+ $id = S::v('uid', $id);
if ($id < 0) {
return '';