diff --git a/authhtpasswd.php b/authhtpasswd.php index 18a6e56..d0f224e 100644 --- a/authhtpasswd.php +++ b/authhtpasswd.php @@ -36,7 +36,7 @@ class authhtpasswd extends auth foreach ($lines as $line) { // Comment line : skip it - if ($line{0} === "#") + if (isset ($line{0}) && $line{0} === "#") continue; $line = trim ($line); $user = strstr ($line, ":", true);