alecpl
2008-06-14 46290afee202066d2510db1c02e86838da88545c
- fixed warning when show()'ing tables without attributes


1 files modified
8 ■■■■■ changed files
program/include/html.php 8 ●●●●● patch | view | raw | blame | history
program/include/html.php
@@ -603,10 +603,12 @@
     * @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)) {