Code

Fixed loading of property lists.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Jun 2011 07:31:07 +0000 (07:31 +0000)
committerhickert <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

gosa-core/include/class_core.inc

index eb857f9f94aa353f48de19db6818971c83e4792c..834ed53f6632cbf391b7eefd9507d0a4336b6975 100644 (file)
@@ -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;