Remove irrelevant else case
This commit is contained in:
parent
dcd1f18611
commit
047f949967
|
@ -47,8 +47,6 @@ class PreloadConfigAdapter extends BaseObject implements IConfigAdapter
|
||||||
$config = dba::selectFirst('config', ['v'], ['cat' => $cat, 'k' => $k]);
|
$config = dba::selectFirst('config', ['v'], ['cat' => $cat, 'k' => $k]);
|
||||||
if (DBM::is_result($config)) {
|
if (DBM::is_result($config)) {
|
||||||
$this->setPreloadedValue($cat, $k, $config['v']);
|
$this->setPreloadedValue($cat, $k, $config['v']);
|
||||||
} else {
|
|
||||||
$this->deletePreloadedValue($cat, $k);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue