Browse Source

Eliminate PHP notices. Thanks to Pablo Alvarez de Sotomayor Posadillo

pdontthink 17 năm trước cách đây
mục cha
commit
5c2f2e7f89
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      functions/auth.php

+ 1 - 1
functions/auth.php

@@ -199,7 +199,7 @@ function digest_md5_response ($username,$password,$challenge,$service,$host,$aut
  */
 function digest_md5_parse_challenge($challenge) {
     $challenge=base64_decode($challenge);
-    while (isset($challenge)) {
+    while (isset($challenge) && $challenge !== FALSE) {
         if ($challenge{0} == ',') { // First char is a comma, must not be 1st time through loop
             $challenge=substr($challenge,1);
         }