Phan and phpstan fixes

Note that ACL\Login FIXME will be fixed later do not change any current
functionality
This commit is contained in:
Clemens Schwaighofer
2022-03-16 09:01:33 +09:00
parent 38903020fb
commit 105e0d69a1
7 changed files with 29 additions and 16 deletions

View File

@@ -226,7 +226,7 @@ if (
((is_array($DB_CONFIG) && !count($DB_CONFIG)) ||
!is_array($DB_CONFIG) ||
// has DB CONFIG but no match
(is_array($DB_CONFIG) && count($DB_CONFIG) && !isset($DB_CONFIG[$SITE_CONFIG[HOST_NAME]['db_host']])))
empty($DB_CONFIG[$SITE_CONFIG[HOST_NAME]['db_host']]))
)
) {
echo 'No matching DB config found for: "' . HOST_NAME . '" . Contact Administrator';