Skip to content
Snippets Groups Projects
Commit 007f6c81 authored by Will Spooner's avatar Will Spooner
Browse files

Fixed bug in validate_sources. Now uses the number of rows returned (rather...

Fixed bug in validate_sources. Now uses the number of rows returned (rather than the row data) to validate the source
parent 4d127bef
No related branches found
No related tags found
No related merge requests found
......@@ -976,8 +976,8 @@ sub validate_sources {
foreach my $source (@sources) {
$sth->execute(lc($source));
if ($sth->fetchrow_array()) {
my $rv = $sth->execute(lc($source));
if ( $rv > 0 ) {
print "Source $source is valid\n";
} else {
print "\nSource $source is not valid; valid sources are:\n";
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment