index 53d50519d5507bfc91c0059c862e5243582844f3..2bf9e3b5935c9a597b6cb69e705c3f4126132004 100644 (file)
// 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)) {
if($restore){
$result.= "<li$separator><a href='#' onClick='document.getElementById(\"actionmenu\").value= \"restore\";document.getElementById(\"exec_act\").click();'>".image('images/lists/restore.png')." "._("Restore snapshots")."</a></li>";
}else{
- $result.= "<li$separator><a href='#'>".image('images/lists/restore_grey.png')." "._("Restore snapshots")."</a></li>";
+ $result.= "<li$separator><a href='#'>".image('images/lists/restore-grey.png')." "._("Restore snapshots")."</a></li>";
}
}
if($this->snapshotHandler->hasSnapshots($dn)){
$result.= image('images/lists/restore.png', "listing_restore_$row", _("Restore snapshot"));
} else {
- $result.= image('images/lists/restore_grey.png');
+ $result.= image('images/lists/restore-grey.png');
}
}