Improve & fixing Tests
This commit is contained in:
parent
486f139342
commit
c293eadb78
7 changed files with 76 additions and 63 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ abstract class DbaConfig
|
|||
|
||||
public function __construct(Database $dba)
|
||||
{
|
||||
$this->dba = $dba;
|
||||
$this->dba = $dba;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue