fix a warning
authorFelix Fietkau <nbd@openwrt.org>
Fri, 7 Dec 2007 10:32:48 +0000 (10:32 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 7 Dec 2007 10:32:48 +0000 (10:32 +0000)
SVN-Revision: 9667

scripts/feeds

index d62e8e79dd487d8733329a7c5689510e6ff56e6b..f22adc55c49443b4eaa5b5d477646e74439b12e5 100755 (executable)
@@ -85,7 +85,7 @@ sub search_feed {
                foreach my $substr (@substr) {
                        my $match;
                        foreach my $key (qw(name title description)) {
-                               $substr and $pkg->{$key} =~ m/$substr/i and $match = 1;
+                               $pkg->{$key} and $substr and $pkg->{$key} =~ m/$substr/i and $match = 1;
                        }
                        $match or undef $pkgmatch;
                };