]> granicus.if.org Git - php/commitdiff
* array_merge is more ticklish in php5
authorStig Bakken <ssb@php.net>
Mon, 27 Oct 2003 06:52:14 +0000 (06:52 +0000)
committerStig Bakken <ssb@php.net>
Mon, 27 Oct 2003 06:52:14 +0000 (06:52 +0000)
pear/PEAR/Frontend/CLI.php

index 7604077d46accf14eb8f8ad0c0e3df996948ccc9..941ff96535c81f57b9ce572c03f6a1abf903c4f1 100644 (file)
@@ -304,6 +304,12 @@ class PEAR_Frontend_CLI extends PEAR
         }
         for ($i = 0; $i < sizeof($table_data); $i++) {
             extract($table_data[$i]);
+            if (!is_array($rowparams)) {
+                $rowparams = array();
+            }
+            if (!is_array($colparams)) {
+                $colparams = array();
+            }
             $rowlines = array();
             if ($height > 1) {
                 for ($c = 0; $c < sizeof($data); $c++) {