Преглед на файлове

Eliminate PHP notices. Thanks to Pablo Alvarez de Sotomayor Posadillo

pdontthink преди 17 години
родител
ревизия
5c2f2e7f89
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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) {
 function digest_md5_parse_challenge($challenge) {
     $challenge=base64_decode($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
         if ($challenge{0} == ',') { // First char is a comma, must not be 1st time through loop
             $challenge=substr($challenge,1);
             $challenge=substr($challenge,1);
         }
         }