From 910b6c6cdb566f15128dd18a10cbf4cc2b96923d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xe=CC=81fir=20Destiny?= Date: Tue, 15 Jul 2014 08:56:55 +0200 Subject: [PATCH] Fix error with no password --- ajax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ajax.php b/ajax.php index bf5674b..7f4f06a 100644 --- a/ajax.php +++ b/ajax.php @@ -5,7 +5,7 @@ require_once 'config.php'; require_once 'utils.php'; require_once 'Net/SSH2.php'; require_once 'Crypt/RSA.php'; -global $servers; +global $servers, $config; $gitstatus = 'git fetch && git status'; if (!empty($_POST['section'])) { @@ -33,7 +33,7 @@ if (!empty($_POST['action'])) { $session->login($config['user'], $key); } } - if (!$session->isConnected()) { + if (!$session->isConnected() && isset($config['pass'])) { $session->login($config['user'], $config['pass']); }