Code

Added base fixe
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Oct 2006 09:38:03 +0000 (09:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Oct 2006 09:38:03 +0000 (09:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4951 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/addressbook/class_addressbook.inc

index 1f1dff6be1d2d5b698627daf1d6950011cb95114..454c004186fef7e816932cbdeec38145965d9a5d 100644 (file)
@@ -498,7 +498,9 @@ class addressbook extends plugin
 
       $tmp = $this->plInfo();
 
-      
+      if(isset($_POST['storage_base'])){
+        $this->storage_base = $_POST['storage_base'];  
+      }
 
       switch ($_SESSION['show_info']){
 
@@ -506,7 +508,7 @@ class addressbook extends plugin
 
           $a_bases = $this->get_allowed_bases();
   
-          if(!in_array_ics($this->storage_base,$a_bases)){
+          if(!isset($a_bases[$this->storage_base])){
             $base = key($this->get_allowed_bases());
             $this->storage_base = $base;
           }