Improve & fixing Tests

This commit is contained in:
Philipp Holzer
2019-07-04 21:39:49 +02:00
parent 486f139342
commit c293eadb78
7 changed files with 76 additions and 63 deletions

View File

@@ -50,8 +50,10 @@ class JitConfiguration extends Configuration
$config = $this->configModel->load($cat);
foreach ($config[$cat] as $key => $value) {
$this->in_db[$cat][$key] = true;
if (!empty($config[$cat])) {
foreach ($config[$cat] as $key => $value) {
$this->in_db[$cat][$key] = true;
}
}
// load the whole category out of the DB into the cache