Code

Updated logview to display the target object too.
[gosa.git] / include / class_plugin.inc
index bb4863c3e30f7ff4c1102434a4b2d13a1c1013d1..4440ab7626ead2106a0fb992fa7ef64960921db9 100644 (file)
@@ -1406,7 +1406,7 @@ class plugin
 
     /* Create a new snapshot requested, check
        the given attributes and create the snapshot*/
-    if(isset($_POST['CreateSnapshot'])){
+    if(isset($_POST['CreateSnapshot']) && is_object($this->snapDialog)){
       $this->snapDialog->save_object();
       $msgs = $this->snapDialog->check();
       if(count($msgs)){
@@ -1435,7 +1435,7 @@ class plugin
   }
 
 
-  function plInfo()
+  static function plInfo()
   {
     return array();
   }