mirror of
https://github.com/friendica/friendica
synced 2025-04-26 16:30:12 +00:00
Preload Adapter Fix
This commit is contained in:
parent
a3152a96c2
commit
2fc81898da
5 changed files with 36 additions and 14 deletions
|
@ -29,10 +29,12 @@ class JITPConfigAdapter extends AbstractDbaConfigAdapter implements IPConfigAdap
|
|||
if (DBA::isResult($pconfigs)) {
|
||||
while ($pconfig = DBA::fetch($pconfigs)) {
|
||||
$key = $pconfig['k'];
|
||||
$value = $pconfig['v'];
|
||||
|
||||
$return[$key] = $pconfig['v'];
|
||||
|
||||
$this->in_db[$uid][$cat][$key] = true;
|
||||
if (isset($value) && $value !== '') {
|
||||
$return[$key] = $value;
|
||||
$this->in_db[$uid][$cat][$key] = true;
|
||||
}
|
||||
}
|
||||
} else if ($cat != 'config') {
|
||||
// Negative caching
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue