Code

Updated gohpone account.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Oct 2008 13:52:27 +0000 (13:52 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Oct 2008 13:52:27 +0000 (13:52 +0000)
-Save sip user information also if hardware is automatic

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12784 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc

index 1094e0280af5a6de9b2d1e80f0c0a5e8f502dfdb..2d234439726f1f53b46467aaf77263fffbf17042 100644 (file)
@@ -842,13 +842,11 @@ class phoneAccount extends plugin
       }
 
       // Perform queries ...
-      if($this->goFonHardware != "automatic"){
-        foreach($SQL_query_array as $query){
-          @DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$query, "Database query");
-          if(!@mysql_query($query,$new_connection)){
-            $this->generate_error =  msgPool::dbquery("GOfon",@mysql_error($old_connection));
-            return false;
-          }
+      foreach($SQL_query_array as $query){
+        @DEBUG (DEBUG_MYSQL, __LINE__, __FUNCTION__, __FILE__,$query, "Database query");
+        if(!@mysql_query($query,$new_connection)){
+          $this->generate_error =  msgPool::dbquery("GOfon",@mysql_error($old_connection));
+          return false;
         }
       }
     }