Bugfix: i've broken some code from issue #4

This commit is contained in:
djmaze 2020-09-24 11:59:37 +02:00
parent 72780a885e
commit 0a2149c60d

View file

@ -545,7 +545,7 @@ class PdoAddressBook
$sPath = $oClient->__UrlPath__;
$bGood = true;
$bGood = false;
if ('' === $sPath || '/' === $sPath || !$this->checkContactsPath($oClient, $sPath))
{
$sNewPath = '';
@ -598,6 +598,10 @@ class PdoAddressBook
$bGood = $this->checkContactsPath($oClient, $sPath);
}
else
{
$bGood = true;
}
return $bGood ? $oClient : null;
}