Merge pull request #10336 from hregis/8.0_bug

FIX avoid php warning
This commit is contained in:
Laurent Destailleur 2019-01-15 17:59:09 +01:00 committed by GitHub
commit f51b4288da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,7 +196,7 @@ if (constant('DOL_DATA_ROOT') === null) {
}
if (@file_exists($lockfile))
{
if (! is_object($langs))
if (! isset($langs) || ! is_object($langs))
{
$langs = new Translate('..', $conf);
$langs->setDefaultLang('auto');