aboutsummaryrefslogtreecommitdiff
path: root/caches/SQLiteCache.php
diff options
context:
space:
mode:
authorGravatar Dag <me@dvikan.no> 2022-08-23 21:19:53 +0200
committerGravatar GitHub <noreply@github.com> 2022-08-23 21:19:53 +0200
commit5165ea265dbf73064a13c285cf08c7445839d196 (patch)
treef6402a157d245af32684b76b4ece6346df294975 /caches/SQLiteCache.php
parentedbafc614430d42789209bde3930cfe14bd8a8f0 (diff)
downloadrss-bridge-5165ea265dbf73064a13c285cf08c7445839d196.tar.gz
rss-bridge-5165ea265dbf73064a13c285cf08c7445839d196.tar.zst
rss-bridge-5165ea265dbf73064a13c285cf08c7445839d196.zip
fix: case-insensitive config from env, fix #2935 (#2973)
* refactor * fix: case-sensitive config from env, fix #2935 * lowercase all config section and keys * test: add test for case-insensitivity
Diffstat (limited to 'caches/SQLiteCache.php')
-rw-r--r--caches/SQLiteCache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/caches/SQLiteCache.php b/caches/SQLiteCache.php
index 339e4119..1e44519b 100644
--- a/caches/SQLiteCache.php
+++ b/caches/SQLiteCache.php
@@ -22,7 +22,7 @@ class SQLiteCache implements CacheInterface
$section = 'SQLiteCache';
$file = Configuration::getConfig($section, 'file');
- if (empty($file)) {
+ if (!$file) {
throw new \Exception(sprintf('Configuration for %s missing.', $section));
}