mirror of
https://github.com/friendica/friendica
synced 2025-04-26 20:30:11 +00:00
Fix tests (#5400)
* Avoid argc side-effects * Fix undefined array keys in JITConfigAdapter::set() * Avoid argv side effects in ApiTest
This commit is contained in:
parent
b265bf2ec3
commit
6e1ed0b0d3
2 changed files with 19 additions and 0 deletions
|
@ -96,6 +96,13 @@ class JITConfigAdapter extends BaseObject implements IConfigAdapter
|
|||
|
||||
$stored = $this->get($cat, $k, null, true);
|
||||
|
||||
if (!isset($this->in_db[$cat])) {
|
||||
$this->in_db[$cat] = [];
|
||||
}
|
||||
if (!isset($this->in_db[$cat][$k])) {
|
||||
$this->in_db[$cat] = false;
|
||||
}
|
||||
|
||||
if (($stored === $dbvalue) && $this->in_db[$cat][$k]) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue