Skip to content

Commit

Permalink
Fix potential warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Mar 21, 2024
1 parent 31e2c13 commit 47cf90f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion find.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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', "<tt>$d->{'home'}</tt>"),"<br>\n";
open(my $FIND, "find ".quotemeta($d->{'home'})." -name ".
Expand Down
2 changes: 1 addition & 1 deletion index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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, [
Expand Down

0 comments on commit 47cf90f

Please sign in to comment.