fix WikiBugs/PwlistArray

reported and fix contributed by JuanmaMP
This commit is contained in:
Markus Lude
2017-10-29 17:31:53 +01:00
parent d3b07e925d
commit 870e1f7eed
2 changed files with 4 additions and 2 deletions

View File

@@ -7,6 +7,8 @@ Changes for next release:
based on work by MarkIrons
* fixed bug UnusedVariableDeclaration
fix contributed by JuanMtnezPineda
* fixed bug PwlistArray
fix contributed by JuanMtnezPineda
Changes for bugfix release 1.0.6 (November 05, 2016):

View File

@@ -2807,7 +2807,7 @@ sub UserIsBanned {
}
sub UserIsAdmin {
my (@pwlist, $userPassword);
my ($userPassword);
return 0 if ($AdminPass eq "");
$userPassword = &GetParam("adminpw", "");
@@ -2820,7 +2820,7 @@ sub UserIsAdmin {
}
sub UserIsEditor {
my (@pwlist, $userPassword);
my ($userPassword);
return 1 if (&UserIsAdmin()); # Admin includes editor
return 0 if ($EditPass eq "");