=== yfksubs.pl
==================================================================
--- yfksubs.pl	(revision 10077)
+++ yfksubs.pl	(revision 10078)
@@ -1373,7 +1373,7 @@
 		refresh($wi[5]);
 	}
 
-	if ($usehamdb) {
+	if ($usehamdb && $hamdb) {
 		my $results = $hamdb->lookup(uc($call));
 		if ($results && $#$results > -1) {
 			my $result = $results->[0];	# just get the first
