mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
fix: prevent error when folder doesn't exists
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This commit is contained in:
parent
c864f24cad
commit
08ca10308c
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ class JSignPdfHandler extends Pkcs12Handler {
|
|||
*/
|
||||
private function getHome(): string {
|
||||
$jSignPdfHome = $this->appConfig->getValueString(Application::APP_ID, 'jsignpdf_home', '');
|
||||
if ($jSignPdfHome) {
|
||||
if ($jSignPdfHome && is_dir($jSignPdfHome)) {
|
||||
return $jSignPdfHome;
|
||||
}
|
||||
$jsignpdfTempFolder = $this->tempManager->getTemporaryFolder('jsignpdf');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue