libvideosite: Fix typos in _config_list_del
authorRalf Ertzinger <ralf@skytale.net>
Thu, 2 May 2013 16:38:17 +0000 (18:38 +0200)
committerRalf Ertzinger <ralf@skytale.net>
Thu, 2 May 2013 16:38:17 +0000 (18:38 +0200)
libvideosite.pm

index 55dacd0..5f3acdb 100644 (file)
@@ -367,9 +367,9 @@ sub _config_list_del {
     }
 
     _debug("Removing %s from list %s", $item, join('.', @{$path}));
-    @c = map { $item ne $_ } split(/\s*,\s*/, _config_get($path));
+    @c = grep { $item ne $_ } split(/\s*,\s*/, _config_get($path));
 
-    _config_set($path, join('.', @c));
+    _config_set($path, join(',', @c));
 }
 
 #