From 18a039bd7fba32f4591420143f8d6ff747d46817 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 6 Apr 2008 23:24:29 +0200 Subject: [PATCH] Fix virtual table entry of new mailing list created via x.net Signed-off-by: Florent Bruneau --- modules/xnetlists.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.1.4