PHP 5.4 fix
This commit is contained in:
parent
f350424b97
commit
3aaa019701
|
@ -103,9 +103,9 @@ function lamLoginSSH($handle) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$password = $credentials[1];
|
$password = $credentials[1];
|
||||||
if (!empty($_SESSION['config']->getScriptSSHKey())) {
|
|
||||||
// use key authentication
|
|
||||||
$keyPath = $_SESSION['config']->getScriptSSHKey();
|
$keyPath = $_SESSION['config']->getScriptSSHKey();
|
||||||
|
if (!empty($keyPath)) {
|
||||||
|
// use key authentication
|
||||||
if (!file_exists($keyPath) || !is_readable($keyPath)) {
|
if (!file_exists($keyPath) || !is_readable($keyPath)) {
|
||||||
throw new Exception(sprintf(_("Unable to read %s."), htmlspecialchars($keyPath)));
|
throw new Exception(sprintf(_("Unable to read %s."), htmlspecialchars($keyPath)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue