diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-14 18:33:01 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-14 18:33:01 +0000 |
| commit | 85d49a4e7303dec60778307f3aa158cf630abd10 (patch) | |
| tree | 8252ee57f5e1220e9557c06a81d34cfe75c00239 | |
| parent | eabad3b07f92c8bfe5be953e4a523b3af8533835 (diff) | |
- fixed warning when show()'ing tables without attributes
git-svn-id: https://svn.roundcube.net/trunk@1538 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/include/html.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/roundcubemail/program/include/html.php b/roundcubemail/program/include/html.php index 4057bd14d..aa9d758f2 100644 --- a/roundcubemail/program/include/html.php +++ b/roundcubemail/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)) { |
