Fix Codacy issue

This commit is contained in:
Sebastian Meyer 2020-12-20 16:57:21 +01:00
parent b9ca493018
commit 6786da5683
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ class Solr
$config['port'] = MathUtility::forceIntegerInRange($conf['solrPort'], 1, 65535, 8983);
// Trim path of slashes and (re-)add trailing slash if path not empty.
$config['path'] = trim($conf['solrPath'], '/');
if (!empty($solrInfo['path'])) {
if (!empty($config['path'])) {
$config['path'] .= '/';
}
// Timeout