Skip to content

Commit 01774c7

Browse files
authored
Merge pull request #6136 from LibreSign/backport/6128/stable31
[stable31] fix: prevent error when folder doesn't exists
2 parents b60fad6 + e8d5f13 commit 01774c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Handler/SignEngine/JSignPdfHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private function getEnvironments(): string {
109109
*/
110110
private function getHome(): string {
111111
$jSignPdfHome = $this->appConfig->getValueString(Application::APP_ID, 'jsignpdf_home', '');
112-
if ($jSignPdfHome) {
112+
if ($jSignPdfHome && is_dir($jSignPdfHome)) {
113113
return $jSignPdfHome;
114114
}
115115
$jsignpdfTempFolder = $this->tempManager->getTemporaryFolder('jsignpdf');

0 commit comments

Comments
 (0)