From 26c6ea899db00c64dfe9863980e66877323be1b2 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 22 Feb 2007 18:24:34 +0000 Subject: [PATCH] hide errors --- lam/lib/lamdaemon.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/lamdaemon.inc b/lam/lib/lamdaemon.inc index 6ebe9a15..6bfa5e4d 100644 --- a/lam/lib/lamdaemon.inc +++ b/lam/lib/lamdaemon.inc @@ -113,7 +113,7 @@ function lamdaemonSSH($commands, $server) { $commands = implode("\n", $commands) . "\n"; // get username and password of the current lam-admin $credentials = $_SESSION['ldap']->decrypt_login(); - $handle = ssh2_connect($server); + $handle = @ssh2_connect($server); if ($handle) { $sr = @ldap_read($_SESSION['ldap']->server(), $credentials[0], "objectClass=posixAccount", array('uid')); if (!$sr) {