FIX avoid php warning
Signed-off-by: Regis Houssin <regis.houssin@inodbox.com>
This commit is contained in:
parent
1aa2b7a164
commit
41a38b3a0a
@ -196,7 +196,7 @@ if (constant('DOL_DATA_ROOT') === null) {
|
|||||||
}
|
}
|
||||||
if (@file_exists($lockfile))
|
if (@file_exists($lockfile))
|
||||||
{
|
{
|
||||||
if (! is_object($langs))
|
if (! isset($langs) || ! is_object($langs))
|
||||||
{
|
{
|
||||||
$langs = new Translate('..', $conf);
|
$langs = new Translate('..', $conf);
|
||||||
$langs->setDefaultLang('auto');
|
$langs->setDefaultLang('auto');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user