]> granicus.if.org Git - php/commitdiff
that makes more sense
authorTomas V.V.Cox <cox@php.net>
Tue, 18 Dec 2001 08:52:48 +0000 (08:52 +0000)
committerTomas V.V.Cox <cox@php.net>
Tue, 18 Dec 2001 08:52:48 +0000 (08:52 +0000)
pear/scripts/pear.in

index decb0699583ecca8f157931d690e8f71d5856852..b8865d224432d00c2fc5cf2518ce263dfe8b8bd9 100644 (file)
@@ -390,11 +390,11 @@ function present_array(&$arr, $keys = null)
         if (is_array($arr[$k])) {
             foreach ($arr[$k] as $i => $value) {
                 $x = "$k #$i";
+                $cont = array();
                 foreach(array_keys($value) as $val) {
                     $cont[] = "$val=" . $value[$val];
                 }
                 $v = implode(", ", $cont);
-                $cont = array();
                 printf($format_string, $x, $v);
             }
             continue;