Code

Updated config check
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Jun 2006 06:58:43 +0000 (06:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Jun 2006 06:58:43 +0000 (06:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3790 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_plugin.inc

index 3fca2b0551ada5f026bb18332b1ccc3c2c11665c..b4f7b1efbcb9e802bb73319446a9a303dd8ea515 100644 (file)
@@ -1063,6 +1063,11 @@ class plugin
     $ldap->cd($this->config->current['BASE']);
     $tmp = $this->config->data['MAIN'];
 
+    if(!isset($tmp['SNAPSHOT_BASE'])){
+      print_red(_("Please specify the attribute SNAPSHOT_SERVER in your gosa.conf."));
+      return(array());
+    }
+
     /* check if there are special server configurations for snapshots */
     if(isset($tmp['SNAPSHOT_SERVER'])){
       $server       = $tmp['SNAPSHOT_SERVER'];