Renamed $key variable in loops (fixes bug #111155)
authorpallo <pallo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 8 Aug 2000 07:08:16 +0000 (07:08 +0000)
committerpallo <pallo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 8 Aug 2000 07:08:16 +0000 (07:08 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@682 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/addressbook.php
src/addrbook_search.php
src/addrbook_search_html.php
src/addressbook.php
src/compose.php

index 45f586b..21b6f1c 100644 (file)
@@ -36,7 +36,7 @@
       // Load configured LDAP servers
       if(is_array($ldap_server)) {
         reset($ldap_server);
-        while(list($key,$param) = each($ldap_server)) {
+        while(list($undef,$param) = each($ldap_server)) {
            if(is_array($param)) {
               $r = $abook->add_backend("ldap_server", $param);
               if(!$r && $showerr) {
index d89d118..df487f7 100644 (file)
@@ -100,7 +100,7 @@ function bcc_address($addr) {
 
       print "</TR>\n";
       
-      while(list($key, $row) = each($res)) {
+      while(list($undef, $row) = each($res)) {
         printf("<tr%s nowrap><td valign=top nowrap align=center width=\"5%%\">".
                "<small><a href=\"javascript:to_address('%s');\">To</A> | ".
                "<a href=\"javascript:cc_address('%s');\">Cc</A> | ".
@@ -190,7 +190,7 @@ function bcc_address($addr) {
         printf("<OPTION VALUE=-1 SELECTED>%s\n", 
                _("All address books"));
         $ret = $abook->get_backend_list();
-        while(list($k,$v) = each($ret)) 
+        while(list($undef,$v) = each($ret)) 
            printf("<OPTION VALUE=%d>%s\n", $v->bnum, $v->sname);
         printf("</SELECT>\n");
       } else {
index 6f8259f..cbbfa93 100644 (file)
@@ -75,7 +75,7 @@
 
       print "</TR>\n";
       
-      while(list($key, $row) = each($res)) {
+      while(list($undef, $row) = each($res)) {
          printf("<tr%s nowrap><td nowrap align=center width=\"5%%\">".
                 "<input type=checkbox name=\"send_to_search[]\" value=\"%s\">&nbsp;To".
                 "<input type=checkbox name=\"send_to_cc_search[]\" value=\"%s\">&nbsp;Cc&nbsp;".
             ($backend == -1) ? "SELECTED" : "",
             _("All address books"));
       $ret = $abook->get_backend_list();
-      while(list($k,$v) = each($ret)) 
+      while(list($undef,$v) = each($ret)) 
         printf("<OPTION VALUE=%d %s>%s\n", 
                $v->bnum, 
                ($backend == $v->bnum) ? "SELECTED" : "",
index d8c7d45..d269fe5 100644 (file)
       $headerprinted = false;
 
       // List addresses
-      while(list($key,$row) = each($alist)) {
+      while(list($undef,$row) = each($alist)) {
 
         // New table header for each backend
         if($prevbackend != $row["backend"]) {
index 6607522..a1e43f7 100644 (file)
       is_logged_in();
       displayPageHeader($color, $mailbox);
 
-      while (list($key, $localname) = each($delete)) {
-         array_splice ($attachments, $key, 1);
+      while (list($lkey, $localname) = each($delete)) {
+         array_splice ($attachments, $lkey, 1);
          unlink ($attachment_dir.$localname);
          unlink ($attachment_dir.$localname.".info");
       }