diff --git a/find.cgi b/find.cgi
index 645d33c..acd54e0 100755
--- a/find.cgi
+++ b/find.cgi
@@ -19,7 +19,7 @@ my %got = map { ( "$_->[0]/$htaccess_htpasswd::config{'htaccess'}", 1 ) } @dirs;
my $f_apache = $virtual_server::config{'web'};
my $f_indent = " " x 4;
-my $f_label;
+my $f_label = "";
$f_label = 2 if (!$f_apache);
print &text('find_doing', "$d->{'home'}"),"
\n";
open(my $FIND, "find ".quotemeta($d->{'home'})." -name ".
diff --git a/index.cgi b/index.cgi
index 7cfa3d9..0d93143 100755
--- a/index.cgi
+++ b/index.cgi
@@ -37,7 +37,7 @@ foreach my $dir (@dirs) {
my $conf = &apache::get_htaccess_config(
"$dir->[0]/$htaccess_htpasswd::config{'htaccess'}");
my $desc = &apache::find_directive("AuthName", $conf, 1);
- my $users = $dir->[2] == 3 ?
+ my $users = ($dir->[2] && $dir->[2] == 3) ?
&htaccess_htpasswd::list_digest_users($dir->[1]) :
&htaccess_htpasswd::list_users($dir->[1]);
push(@table, [