summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d05a052)
raw | patch | inline | side by side (parent: d05a052)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Jun 2011 07:31:07 +0000 (07:31 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Jun 2011 07:31:07 +0000 (07:31 +0000) |
- Parameters were overwritten during iteration of list values.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20911 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20911 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_core.inc | patch | blob | history |
index eb857f9f94aa353f48de19db6818971c83e4792c..834ed53f6632cbf391b7eefd9507d0a4336b6975 100644 (file)
break;
case 'timezone':
$tmp = timezone::_get_tz_zones();
- foreach($tmp['TIMEZONES'] as $name => $offset){
+ foreach($tmp['TIMEZONES'] as $tzname => $offset){
if($offset >= 0){
- $list[$name] = $name." ( + ".sprintf("%0.2f",$offset/(60*60))." "._("hours").")";
+ $list[$tzname] = $tzname." ( + ".sprintf("%0.2f",$offset/(60*60))." "._("hours").")";
}else{
$offset = $offset * -1;
- $list[$name] = $name." ( - ".sprintf("%0.2f",($offset/(60*60)))." "._("hours").")";
+ $list[$tzname] = $tzname." ( - ".sprintf("%0.2f",($offset/(60*60)))." "._("hours").")";
}
}
break;
$tmp = mailMethod::get_methods();
}
$list =array();
- foreach($tmp as $name => $value){
- $name = preg_replace('/^mailMethod/','', $name);
- $list[$name] = $value;
+ foreach($tmp as $vName => $vValue){
+ $vName = preg_replace('/^mailMethod/','', $vName);
+ $list[$vName] = $vValue;
}
$list[''] = _("None");
break;