fix for swish without filter
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 11 Mar 2004 18:20:19 +0000 (18:20 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 11 Mar 2004 18:20:19 +0000 (18:20 +0000)
git-svn-id: file:///home/dpavlin/private/svn/webpac/branches/hidra@258 13eb9ef6-21d5-0310-b721-a9d68796d827

all2xml.pl

index d6f704a..9ed7e4e 100755 (executable)
@@ -292,10 +292,10 @@ sub data2xml {
                                }
                                # type="swish" ; field for swish
                                if ($swish) {
                                }
                                # type="swish" ; field for swish
                                if ($swish) {
-                                       my $tmp;
+                                       my $tmp = $swish;
                                        if ($filter && ($s || $se)) {
                                                no strict 'refs';
                                        if ($filter && ($s || $se)) {
                                                no strict 'refs';
-                                               $tmp = join(" ",&$filter($swish)) if ($s || $se);
+                                               $tmp = join(" ",&$filter($tmp)) if ($s || $se);
                                        }
 
                                        $tmp = chk_eval($tmp);
                                        }
 
                                        $tmp = chk_eval($tmp);