From: hickert Date: Mon, 26 Nov 2007 14:06:46 +0000 (+0000) Subject: Hide connect error messages, if server is down ... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b7fadf16d8726621d3fe0ab2fc378ce9f9caf5a3;p=gosa.git Hide connect error messages, if server is down ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7895 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/addons/logview/class_gosa_logview.inc b/plugins/addons/logview/class_gosa_logview.inc index 3507fd934..a3cb6ede6 100644 --- a/plugins/addons/logview/class_gosa_logview.inc +++ b/plugins/addons/logview/class_gosa_logview.inc @@ -140,7 +140,7 @@ class gosa_logview extends plugin * Connect to currently selected server ****/ $cfg = $list_of_servers[$this->server]; - $link = mysql_pconnect($this->server, $cfg['USER'], $cfg['PWD']); + $link = @mysql_pconnect($this->server, $cfg['USER'], $cfg['PWD']); if ($link === FALSE){ print_red(_("Can't connect to log database, no logs can be shown!")); new log("debug","logview","",array(),@mysql_error());