Merge commit 'origin/platal-0.10.0'
[platal.git] / include / validations / broken.inc.php
index 31e3fc6..8dc35f7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2008 Polytechnique.org                              *
+ *  Copyright (C) 2003-2009 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -37,10 +37,10 @@ class BrokenReq extends Validate
     // }}}
     // {{{ constructor
 
-    public function __construct(User $sender, User $user, $email, $comment = null)
+    public function __construct(User &$sender, User &$user, $email, $comment = null)
     {
         parent::__construct($sender, false, 'broken');
-        $this->m_user      = $user;
+        $this->m_user      = &$user;
         $this->m_comment   = trim($comment);
         $this->m_email     = $email;
     }