diff --git a/webroot/img.php b/webroot/img.php index 9b862ad..9dbc00a 100644 --- a/webroot/img.php +++ b/webroot/img.php @@ -233,7 +233,7 @@ $pwdType = getConfig('password_type', 'text'); $pwd = get(array('password', 'pwd'), null); // Check if passwords match, if configured to use passwords -$passwordMatch = false; +$passwordMatch = null; if ($pwd) { switch($pwdType) { case 'md5': @@ -245,6 +245,8 @@ if ($pwd) { case 'text': $passwordMatch = ($pwdConfig === $pwd); break; + default: + $passwordMatch = false; } }