From: hickert Date: Wed, 14 Sep 2005 08:42:11 +0000 (+0000) Subject: Added check for existence of goFonServer X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=be8b5e2239d8b209544a0922ecdc3d9f3d228273;p=gosa.git Added check for existence of goFonServer git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1358 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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'];