From 8f27a08b6519c33075e3ec89d3a53e5a515a98a0 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 18 Nov 2005 06:19:47 +0000 Subject: [PATCH] Fixed white page if mysql extension was missing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1968 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/reports/class_fonreport.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/gofon/reports/class_fonreport.inc b/plugins/gofon/reports/class_fonreport.inc index 1c20d9112..a2ef80dcf 100644 --- a/plugins/gofon/reports/class_fonreport.inc +++ b/plugins/gofon/reports/class_fonreport.inc @@ -138,6 +138,12 @@ class fonreport extends plugin if (!isset($this->config->data['SERVERS']['FON'])){ return (""); } + + if(!is_callable("mysql_connect")){ + print_red("There is no mysql extension available."); + return; + } + $cfg= $this->config->data['SERVERS']['FON']; $link = @mysql_pconnect($cfg['SERVER'], $cfg['LOGIN'], $cfg['PASSWORD']); if ($link === FALSE){ -- 2.30.2