Code

Hide connect error messages, if server is down ...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Nov 2007 14:06:46 +0000 (14:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Nov 2007 14:06:46 +0000 (14:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7895 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/logview/class_gosa_logview.inc

index 3507fd934e8a5959e51592a24bd4b28dfd90aca2..a3cb6ede6886cb37e31cd739d681e5a640c673c3 100644 (file)
@@ -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());