let's pretend we saw nothin'
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Fri, 3 Dec 2004 16:48:46 +0000 (16:48 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:26:27 +0000 (23:26 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-36

include/lists.inc.php

index 717c0ff..f986cbc 100644 (file)
@@ -30,7 +30,7 @@ function &lists_xmlrpc($uid, $pass, $fqdn=null)
 {
     global $globals;
     
-    $dom = empty($fqdn) ? $globals->mail->domain;
+    $dom = empty($fqdn) ? $globals->mail->domain : $fqdn;
     $url = "http://$uid:$pass/{$globals->lists->rpchost}:{$globals->lists->rpcport}/$dom";
     $client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org");
     return $client;