Code

Fixed UTF-8 display problems
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Jan 2010 15:15:39 +0000 (15:15 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Jan 2010 15:15:39 +0000 (15:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15265 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_sortableListing.inc

index 36b44b67cd575778c87964c61898dcdaa0dcd2ac..48babc45568aeb9ab4971c1a7b57e1fb6b4ca8fd 100644 (file)
@@ -102,7 +102,7 @@ class sortableListing {
 
   private function setModes($modes)
   {
-    $this->modes= $modes;
+    $this->modes= array_values($modes);
   }
 
 
@@ -267,7 +267,7 @@ class sortableListing {
         $first= " style='border:0'";
 
         foreach ($this->displayData[$row] as $column) {
-          $result.= "   <td$editable$first>".htmlentities($column)."</td>\n";
+          $result.= "   <td$editable$first>".$column."</td>\n";
           $first= "";
         }
 
@@ -467,7 +467,7 @@ class sortableListing {
   }
 
 
-  public function addEntry($entry, $displayEntry= null, $key= null)
+  public function addEntry($entry, $displayEntry= null, $key= null, $mode= null)
   {
     // Only add if not already there
     if (!$key) {
@@ -493,6 +493,7 @@ class sortableListing {
       $this->data[]= $entry;
       $this->keys[]= count($this->mapping);
     }
+    $this->modes[]= $mode;
     $this->displayData[]= $displayEntry;
     $this->mapping[]= count($this->mapping);
     $this->modified= true;