1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-20 00:11:16 +02:00

fix: bug in previous refactor (#2992)

fix #2991
This commit is contained in:
Dag
2022-08-31 18:16:19 +02:00
committed by GitHub
parent 97808abca1
commit 3c2353c0ec

View File

@@ -142,11 +142,11 @@ final class Configuration
self::throwConfigError('authentication', 'enable', 'Is not a valid Boolean'); self::throwConfigError('authentication', 'enable', 'Is not a valid Boolean');
} }
if (!self::getConfig('authentication', 'username')) { if (!is_string(self::getConfig('authentication', 'username'))) {
self::throwConfigError('authentication', 'username', 'Is not a valid string'); self::throwConfigError('authentication', 'username', 'Is not a valid string');
} }
if (! self::getConfig('authentication', 'password')) { if (!is_string(self::getConfig('authentication', 'password'))) {
self::throwConfigError('authentication', 'password', 'Is not a valid string'); self::throwConfigError('authentication', 'password', 'Is not a valid string');
} }