From d221902ff205fc3c89e847645d9845a0294062d4 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 18 Apr 2007 09:06:27 +0000 Subject: [PATCH] Just display mysql error message if there is an active phone account git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6078 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/phoneaccount/class_phoneAccount.inc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index ff643f9fc..a92672422 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -78,16 +78,21 @@ class phoneAccount extends plugin * and first server as default if necessary. * Check if connection is successfull for the selected server $this->goFonHomeServer */ + + + /* Set available server */ + if(isset($_SESSION['config']->data['SERVERS']['FON'])){ + $this->goFonHomeServers = $_SESSION['config']->data['SERVERS']['FON']; + } + $a_SETUP= array(); - if(array_key_exists('config',$_SESSION) && + if($this->is_account && + array_key_exists('config',$_SESSION) && array_key_exists('SERVERS',$_SESSION['config']->data) && array_key_exists('FON',$_SESSION['config']->data['SERVERS']) && is_callable("mysql_connect") ) { - /* Set available server */ - $this->goFonHomeServers = $_SESSION['config']->data['SERVERS']['FON']; - /* Servers defined? Watch here... */ if (count($this->goFonHomeServers)){ -- 2.30.2