Code

Execute parents execute() method child classes of plugin
[gosa.git] / gosa-plugins / goto / addons / goto / class_gotoLogView.inc
index 1eb5604d9e9355b109df0e45becb1f0e5b0bd110..12937512cab55acd559ab13410dc3a005e42788a 100644 (file)
@@ -53,7 +53,7 @@ class gotoLogView extends plugin
     /* 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);
     }
 
@@ -71,6 +71,8 @@ class gotoLogView extends plugin
 
   function execute()
   {
+    plugin::execute();
+
     $smarty = get_smarty();
     $smarty->assign("logs",$this->logs);   
     $smarty->assign("logs_available", isset($this->logs[$this->mac]));
@@ -171,7 +173,7 @@ class gotoLogView extends plugin
   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));