From 64de644884c969bd4dc836f601cdc54242d44adb Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 22 Jun 2011 07:31:07 +0000 Subject: [PATCH] Fixed loading of property lists. - Parameters were overwritten during iteration of list values. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20911 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_core.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gosa-core/include/class_core.inc b/gosa-core/include/class_core.inc index eb857f9f9..834ed53f6 100644 --- a/gosa-core/include/class_core.inc +++ b/gosa-core/include/class_core.inc @@ -159,12 +159,12 @@ class core extends plugin { 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; @@ -177,9 +177,9 @@ class core extends plugin { $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; -- 2.30.2