Home » HTML » HTML_Table_Matrix » Bug #3382
Instantiating a new filler without $options generates a warning
Details
| Submitted | 2005-02-04 21:08 UTC |
|---|---|
| From | cmoehrke at netviser dot de |
| Assigned | ieure |
| Status | Closed |
| Package | HTML_Table_Matrix |
| PHP Version | 5.0.3 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2005-02-04 21:08 UTC] cmoehrke at netviser dot de
Description:
------------
When instantiating a new object without using the optional Array $options Matrix/Filler results in a warning in Line 95. $options is initialized with null and then passed to array_merge() without checking if it's an array.
Reproduce code:
---------------
use the enclosed example
Expected result:
----------------
A proper table
Actual result:
--------------
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /usr/local/php/pear/HTML/Table/Matrix/Filler.php on line 95