Commit f4a88d16 authored by Thomas Löffler's avatar Thomas Löffler

Switch conditions to prevent open_basedir() warning.

parent 8492697d
......@@ -242,7 +242,7 @@ class LanguageDetection extends AbstractPlugin
$pearDirectory = PEAR_INSTALL_DIR;
}
if (file_exists($pearDirectory . '/Net/GeoIP.php') && $this->conf['pathToDatabaseForGeoIPData']) {
if ($this->conf['pathToDatabaseForGeoIPData'] && file_exists($pearDirectory . '/Net/GeoIP.php') {
require_once $pearDirectory . '/Net/GeoIP.php';
$pathToDatabase = GeneralUtility::getFileAbsFileName($this->conf['pathToDatabaseForGeoIPData']);
$geoIp = new \Net_GeoIP($pathToDatabase);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment