Code

Fixed W3c errors.
[gosa.git] / include / class_plugin.inc
index bb4863c3e30f7ff4c1102434a4b2d13a1c1013d1..f2d01c51bd79a09346dc5c0193146dad032ae7da 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)){