Update of /cvsroot/squirrelmail/squirrelmail/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8901/src
Modified Files:
options_identities.php
Log Message:
Do not use $key as varname outside functions because that's used for the
global secret key.
Index: options_identities.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/src/options_identities.php,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -w -r1.40 -r1.41
--- options_identities.php 3 Jul 2005 14:27:39 -0000 1.40
+++ options_identities.php 6 Aug 2005 11:44:56 -0000 1.41
@@ -44,8 +44,8 @@
// we only need to extract the action and the identity we are
// altering
- foreach($row as $key=>$data) {
- $identid = $key;
+ foreach($row as $iKey=>$data) {
+ $identid = $iKey;
}
$doaction = $action;
@@ -69,15 +69,15 @@
$td_str .= '<form name="f" action="options_identities.php" method="post"><br
/>' . "\n";
$td_str .= '<table border="0" cellspacing="0" cellpadding="0" width="100%">' .
"\n";
$cnt = count($identities);
-foreach( $identities as $key=>$ident ) {
+foreach( $identities as $iKey=>$ident ) {
- if ($key == 0) {
+ if ($iKey == 0) {
$hdr_str = _("Default Identity");
} else {
- $hdr_str = sprintf( _("Alternate Identity %d"), $key);
+ $hdr_str = sprintf( _("Alternate Identity %d"), $iKey);
}
- $td_str .= ShowIdentityInfo( $hdr_str, $ident, $key );
+ $td_str .= ShowIdentityInfo( $hdr_str, $ident, $iKey );
}
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
--
squirrelmail-cvs mailing list
List Address: squirrelmail-cvs-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
http://squirrelmail.org/cvs
|