Merge remote branch 'origin/xorg/1.0.2/master' into xorg/master
[platal.git] / include / validations / aliases.inc.php
index 1c6eb64..eb0c2d7 100644 (file)
@@ -1,6 +1,6 @@
 <?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   *
@@ -42,7 +42,7 @@ class AliasReq extends Validate
         $this->alias  = $_alias.'@'.$globals->mail->alias_dom;
         $this->raison = $_raison;
         $this->public = $_public;
-        $this->old    = $user->emailAlias();
+        $this->old    = $_user->emailAlias();
         if (empty($this->old)) {
             unset($this->old);
         }