From be8b5e2239d8b209544a0922ecdc3d9f3d228273 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 14 Sep 2005 08:42:11 +0000 Subject: [PATCH] Added check for existence of goFonServer git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1358 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/conference/class_phoneConferenceGeneric.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/gofon/conference/class_phoneConferenceGeneric.inc b/plugins/gofon/conference/class_phoneConferenceGeneric.inc index 6d306b32b..783649b22 100644 --- a/plugins/gofon/conference/class_phoneConferenceGeneric.inc +++ b/plugins/gofon/conference/class_phoneConferenceGeneric.inc @@ -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']; -- 2.30.2