diff --git a/gosa-plugins/goto/addons/goto/class_gotoLogView.inc b/gosa-plugins/goto/addons/goto/class_gotoLogView.inc
index 1eb5604d9e9355b109df0e45becb1f0e5b0bd110..12937512cab55acd559ab13410dc3a005e42788a 100644 (file)
/* Query for log files
*/
$res = $this->o_queue->get_log_info_for_mac($this->mac);
- if($this->o_queue->is_error()){
+ if($this->o_queue->is_configured() && $this->o_queue->is_error()){
msg_dialog::display(_("Error"), $this->o_queue->get_error(), ERROR_DIALOG);
}
function execute()
{
+ plugin::execute();
+
$smarty = get_smarty();
$smarty->assign("logs",$this->logs);
$smarty->assign("logs_available", isset($this->logs[$this->mac]));
function get_log($mac,$date,$file)
{
$res = $this->o_queue->get_log_file($mac,$date,$file);
- if($this->o_queue->is_error()){
+ if($this->o_queue->is_configured() && $this->o_queue->is_error()){
msg_dialog::display(_("Error"), $this->o_queue->get_error(), ERROR_DIALOG);
}
$res = nl2br(htmlentities($res));