diff options
author | alecpl <alec@alec.pl> | 2008-06-14 18:33:01 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-06-14 18:33:01 +0000 |
commit | 46290afee202066d2510db1c02e86838da88545c (patch) | |
tree | b34ede927ca2da365e9a1dfbd250447c1b81ae57 /program | |
parent | 892ca06c2d1d91cdd90887b03f24f9da404ac1a4 (diff) |
- fixed warning when show()'ing tables without attributes
Diffstat (limited to 'program')
-rw-r--r-- | program/include/html.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/program/include/html.php b/program/include/html.php index 4057bd14d..aa9d758f2 100644 --- a/program/include/html.php +++ b/program/include/html.php @@ -603,10 +603,12 @@ class html_table extends html * @param array Table attributes * @return string The final table HTML code */ - public function show($attr = array()) + public function show($attrib = null) { - $this->attrib = array_merge($this->attrib, $attr); - $thead = $tbody = ""; + if (is_array($attrib)) + $this->attrib = array_merge($this->attrib, $attrib); + + $thead = $tbody = ""; // include <thead> if (!empty($this->header)) { |