From 2336c2a00eb38040043c25138f6c9c942ec2b9bd Mon Sep 17 00:00:00 2001 From: Florian Schmitt Date: Thu, 5 Dec 2024 23:34:39 +0300 Subject: [PATCH] fix(yeswiki-move): path error --- yeswiki-move.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yeswiki-move.php b/yeswiki-move.php index c0ee600..6acd69c 100755 --- a/yeswiki-move.php +++ b/yeswiki-move.php @@ -60,7 +60,7 @@ if (!domainIsOnServer($fromDomainWithoutWww)) { $climate->error('ERROR : Domain '.$fromUrl['host'].' was not found on the server.'."\n"); exit; } -if (!wikiIsOnServer($fromDomainWithoutWww.$fromUrl['path'])) { +if (!wikiIsOnServer($fromDomainWithoutWww.($fromUrl['path'] ?? ''))) { $climate->error('ERROR : no Yeswiki found '.$fromDomainWithoutWww.$fromUrl['path'].' on the server.'."\n"); exit; } @@ -76,7 +76,7 @@ if (!domainIsOnServer($toDomainWithoutWww)) { $climate->error('ERROR : Domain '.$toUrl['host'].' was not found on the server.'."\n"); exit; } -if (!wikiIsOnServer($toDomainWithoutWww.$toUrl['path'])) { +if (!wikiIsOnServer($toDomainWithoutWww.($toUrl['path'] ?? ''))) { $climate->error('ERROR : no Yeswiki found '.$toDomainWithoutWww.$toUrl['path'].' on the server.'."\n"); exit; }