Fix validation of mailing lists.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 3 Oct 2010 10:02:51 +0000 (12:02 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 3 Oct 2010 10:02:51 +0000 (12:02 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
include/validations/listes.inc.php

index dec551b..087edd6 100644 (file)
@@ -139,7 +139,7 @@ class ListeReq extends Validate
             return 1;
         }
 
-        $list = new MMList(S::user()->id(), $this->domain);
+        $list = new MMList(S::user(), $this->domain);
         $ret = $list->create_list($this->liste, utf8_decode($this->desc), $this->advertise,
                                   $this->modlevel, $this->inslevel,
                                   $this->owners, $this->members);