From 6ea6c9b96e33f0c6616ff270cc5b81efe216a209 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 20 Jun 2008 04:46:16 -0400
Subject: [PATCH] Simplify step inclusion in controller (index.php)

---
 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 4057bd1..aa9d758 100644
--- a/program/include/html.php
+++ b/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)) {

--
Gitblit v1.9.1