Code

Added check for existence of goFonServer
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 14 Sep 2005 08:42:11 +0000 (08:42 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 14 Sep 2005 08:42:11 +0000 (08:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1358 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/conference/class_phoneConferenceGeneric.inc

index 6d306b32b5fc92879dfb7d027165e6d8bbd9be02..783649b22c41b88f0953bf27c8d0658445715f22 100644 (file)
@@ -215,6 +215,12 @@ class conference extends plugin
 
 
   function SQL_add_me($save){
+
+    if(!isset($_SESSION['config']->data['SERVERS']['FON'])){
+      $this->generate_error = _("There is currently no asterisk server defined. Possibly you are missing a server that handles the asterisk management (goFonServer). \n  Your Settings can't be saved to asterisk Database. ");
+      return(false);
+    }
+  
     // Get Configuration for Mysql database Server
     $a_SETUP = $_SESSION['config']->data['SERVERS']['FON'];