Code

Fixed undefined r_con
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 21 Nov 2005 05:27:23 +0000 (05:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 21 Nov 2005 05:27:23 +0000 (05:27 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1986 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/phoneaccount/class_phoneAccount.inc

index 24cd331d3b5cbf46a4ab2b23b720b12169bff068..ab1a47101623df0414da6dd87f5d53120f49ce21 100644 (file)
@@ -236,7 +236,7 @@ class phoneAccount extends plugin
     }
     $this->lastmacro=$this->macro;
 
-    if(is_callable("mysql_close")&&($r_con)){
+    if(is_callable("mysql_close")&&(isset($r_con))&&($r_con)){
       @mysql_close($r_con) ;
     }
   }