bugfixing adapter get() in case of no connection

This commit is contained in:
Philipp Holzer 2019-02-11 23:45:08 +01:00
parent ad1254c49c
commit 0a318925a4
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
6 changed files with 10 additions and 10 deletions

View file

@ -49,7 +49,7 @@ class JITPConfigAdapter extends AbstractDbaConfigAdapter implements IPConfigAdap
public function get($uid, $cat, $key)
{
if (!$this->isConnected()) {
return null;
return '!<unset>!';
}
$pconfig = DBA::selectFirst('pconfig', ['v'], ['uid' => $uid, 'cat' => $cat, 'k' => $key]);