1
1
Fork 0

Improve & fixing Tests

This commit is contained in:
Philipp Holzer 2019-07-04 21:39:49 +02:00
commit c293eadb78
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
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

View file

@ -11,7 +11,7 @@ abstract class DbaConfig
public function __construct(Database $dba)
{
$this->dba = $dba;
$this->dba = $dba;
}
/**