MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[PATCH] Hardcoded 'products' in Scan.pm




I don't know if Mike has already fixed it, but I detected another
point where 'products' is hardcoded (3.15beta4).

Bye
		Racke

diff -u -r1.1.1.4 Scan.pm
--- lib/Vend/Scan.pm    1999/08/15 22:06:35     1.1.1.4
+++ lib/Vend/Scan.pm    1999/08/17 14:57:18
@@ -482,7 +482,7 @@
        $numeric = _yes_array('', $options->{'numeric'});
        $numeric = [($numeric) x scalar @specs] if ! ref $numeric;
-       my(@tables) = split /[\s,\000]+/, ($options->{search_file} || 'products');
+       my(@tables) = split /[\s,\000]+/, ($options->{search_file} || $Vend::Cfg->{ProductFiles}[0]);
        my $db = Vend::Data::database_exists_ref($tables[0])
                                or do {


Search for: Match: Format: Sort by: