Merge pull request #16686 from frederic34/patch-5

fix php8 warning
This commit is contained in:
Laurent Destailleur 2021-03-15 17:16:52 +01:00 committed by GitHub
commit dfda1bfa0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,7 @@ if (!empty($conf->categorie->enabled)) {
$search_category_list = GETPOST("search_category_".Categorie::TYPE_ACCOUNT."_list", "array");
}
$socid = 0;
// Security check
if ($user->socid) {
$socid = $user->socid;