FIX #1005 undefined array key

This commit is contained in:
Ulrich Block 2018-01-06 13:12:03 +01:00
parent cb83f15944
commit 5d0ff86d4a

View File

@ -276,7 +276,7 @@ class HttpdManagement {
$this->sftpObject->put($this->vhostData['vhostConfigFile'], $this->vhostData['templateFileContent']);
if ($this->vhostData['fpmFileContent'] != '') {
if (array_key_exists('fpmFileContent', $this->vhostData) and $this->vhostData['fpmFileContent'] != '') {
$this->sftpObject->put($this->vhostData['fpmConfigPath'], $this->vhostData['fpmFileContent']);
}
}