From b7fadf16d8726621d3fe0ab2fc378ce9f9caf5a3 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 26 Nov 2007 14:06:46 +0000 Subject: [PATCH] Hide connect error messages, if server is down ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7895 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/logview/class_gosa_logview.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.30.2