From: hickert Date: Fri, 18 Nov 2005 06:19:47 +0000 (+0000) Subject: Fixed white page if mysql extension was missing X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8f27a08b6519c33075e3ec89d3a53e5a515a98a0;p=gosa.git Fixed white page if mysql extension was missing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1968 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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){