From: Florent Bruneau Date: Sun, 6 Apr 2008 21:24:29 +0000 (+0200) Subject: Fix virtual table entry of new mailing list created via x.net X-Git-Tag: xorg/0.9.16~23 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=18a039bd7fba32f4591420143f8d6ff747d46817;p=platal.git Fix virtual table entry of new mailing list created via x.net Signed-off-by: Florent Bruneau --- diff --git a/modules/xnetlists.php b/modules/xnetlists.php index ab86ee6..e229642 100644 --- a/modules/xnetlists.php +++ b/modules/xnetlists.php @@ -166,7 +166,9 @@ class XnetListsModule extends ListsModule } foreach (array('', 'owner', 'admin', 'bounces', 'unsubscribe') as $app) { $mdir = $app == '' ? '+post' : '+' . $app; - $app = '-' . $app; + if (!empty($app)) { + $app = '-' . $app; + } XDB::execute('INSERT INTO x4dat.virtual (alias,type) VALUES({?},{?})', $liste. $app . '@'.$dom, 'list'); XDB::execute('INSERT INTO x4dat.virtual_redirect (vid,redirect)