fix php8 warnings

This commit is contained in:
Radarjr2002 2022-09-01 13:21:15 +02:00 committed by GitHub
parent e5e59e1de0
commit a83b42ba8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1316,7 +1316,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
$login = dol_buildlogin($object->lastname, $object->firstname);
$generated_password = '';
if (!$ldap_sid) { // TODO ldap_sid ?
if (empty($ldap_sid)) { // TODO ldap_sid ?
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
$generated_password = getRandomPassword(false);
}