diff --git a/gosa-core/include/class_sortableListing.inc b/gosa-core/include/class_sortableListing.inc
index ec56d1215d10848f9a1ee2fb4716b9cca07aefc0..26d30870e2edb979bdcc66f531275c669d66150e 100644 (file)
// Transfer information
$this->displayData= array();
$this->modes= array();
+ $this->mapping= array();
foreach ($data as $key => $value) {
$this->displayData[]= $value['data'];
if (isset($value['mode'])) {
$this->keys= array_keys($data);
// Create initial mapping
- $this->mapping= range(0, abs(count($this->keys)-1));
+ if(count($this->keys)){
+ $this->mapping= range(0, abs(count($this->keys)-1));
+ }
$this->current_mapping= $this->mapping;
// Find the number of coluns
// Do we need a header?
if ($this->header) {
$result.= " <thead>\n <tr>\n";
- $first= " style='border:0'";
+ $first= " style='border-left:0'";
for ($i= 0; $i<$this->columns; $i++) {
$link= "href='?plug=".$_GET['plug']."&PID=".$this->id."&act=SORT_$i'";
$sorter= "";