index a1f6a3c80ef7e763d757f44651823348ec0b4042..6175a42323ceff92b0542460d0097feeedf2cbdc 100644 (file)
}
+ function getFilter()
+ {
+ return($this->filter);
+ }
+
+
function setFilter($filter)
{
$this->filter= &$filter;
$link= "href='?plug=".$_GET['plug']."&PID=".$this->pid."&act=SORT_$index'";
if (isset($config['label'])) {
if ($sortable) {
- $this->header[$index]= "<td class='listheader' ".$this->colprops[$index]."><a $link>"._($config['label'])."$sorter</a></td>";
+ $this->header[$index]= "<td class='listheader' ".$this->colprops[$index]."><a $link>"._($config['label'])."</a>$sorter</td>";
} else {
$this->header[$index]= "<td class='listheader' ".$this->colprops[$index].">"._($config['label'])."</td>";
}
$this->plainHeader[]= _($config['label']);
} else {
if ($sortable) {
- $this->header[$index]= "<td class='listheader' ".$this->colprops[$index]."><a $link> $sorter</a></td>";
+ $this->header[$index]= "<td class='listheader' ".$this->colprops[$index]."><a $link> </a>$sorter</td>";
} else {
$this->header[$index]= "<td class='listheader' ".$this->colprops[$index]."> </td>";
}
// Go thru all actions
$result= "";
$actions= $this->xmlData['actiontriggers']['action'];
+
+ // Ensure we've a valid actions array, if there is only one action in the actiontriggers col
+ // then we've to create a valid array here.
+ if(isset($actions['name'])) $actions = array($actions);
+
foreach($actions as $action) {
// Skip the entry completely if there's no permission to execute it
if (!$this->hasActionPermission($action, $dn, $classes)) {