Code

Fixed goShare Server
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Sep 2007 12:53:54 +0000 (12:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Sep 2007 12:53:54 +0000 (12:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7357 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_goShareServer.inc

index e865a960e99ae858fffde0054f85f7733c3197ec..6f6347627cb316854e4aa78158b7a2aff047d553 100644 (file)
@@ -92,7 +92,7 @@ class goShareServer extends goService{
     }
 
     /* Save NFS setup */
-    if(isset($_POST['NFSsave'])){
+    if(isset($_POST['NFSsave']) && isset($this->o_subWindow) && is_object($this->o_subWindow)){
       if(count($this->o_subWindow->check())>0){
         foreach($this->o_subWindow->check() as $msg) {
           print_red($msg);
@@ -103,7 +103,7 @@ class goShareServer extends goService{
 
         $this->addToList($newone);
         if($this->allow_mounts){
-          if($this->oldone) {
+          if($this->oldone != NULL) {
             $this->deleteFromMountList($this->oldone);
           }
           if ($this->o_subWindow->should_create_mount()) {