Code

Removed duplicated mysql_close
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Sep 2005 12:58:29 +0000 (12:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 13 Sep 2005 12:58:29 +0000 (12:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1351 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/phoneaccount/class_phoneAccount.inc

index 5b88dc73352450402dccd64aa6f4a41fe2bb7bf3..0721be69292831c6c69f68edc32552635959a57a 100644 (file)
@@ -227,12 +227,9 @@ class phoneAccount extends plugin
         if((isset($vp[0]))&&(!empty($vp[0]))){
           $this->goFonPINVoice = $vp[0];
         }
-        @mysql_close($r_con);
       }
-
     }
-
-  
+  @mysql_close($r_con) ;
   }
 
 
@@ -522,7 +519,6 @@ class phoneAccount extends plugin
       foreach($SQL as $query){
         if(!@mysql_query($query,$r_con)){
           print_red(_("Error while performing query ".mysql_error()));
-          @mysql_close($r_con);
           return false;
         }
       }