From 4daaf297478aa66eb359e2989d729d98c3f45793 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Fri, 16 Sep 2011 07:37:44 -0400
Subject: [PATCH] - Fix default folders settings  (according to namespaces) for new users too

---
 program/include/html.php |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/program/include/html.php b/program/include/html.php
index b376d8a..27eeebb 100644
--- a/program/include/html.php
+++ b/program/include/html.php
@@ -675,8 +675,7 @@
         if ($index === null)
             $index = $this->rowindex;
 
-        if ($this->rows[$index])
-            $this->rows[$index]->attrib = $attr;
+        $this->rows[$index]->attrib = $attr;
     }
 
     /**
@@ -713,7 +712,7 @@
             foreach ($this->header as $c => $col) {
                 $rowcontent .= self::tag('td', $col->attrib, $col->content);
             }
-            $thead = self::tag('thead', null, self::tag('tr', null, $rowcontent));
+            $thead = self::tag('thead', null, self::tag('tr', null, $rowcontent, parent::$common_attrib));
         }
 
         foreach ($this->rows as $r => $row) {
@@ -723,7 +722,7 @@
             }
 
             if ($r < $this->rowindex || count($row->cells)) {
-                $tbody .= self::tag('tr', $row->attrib, $rowcontent);
+                $tbody .= self::tag('tr', $row->attrib, $rowcontent, parent::$common_attrib);
             }
         }
 

--
Gitblit v1.9.1