mirror of
https://github.com/friendica/friendica
synced 2025-04-26 16:30:12 +00:00
bugfixing adapter get() in case of no connection
This commit is contained in:
parent
ad1254c49c
commit
0a318925a4
6 changed files with 10 additions and 10 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue