fix php8 warning

This commit is contained in:
Frédéric FRANCE 2021-03-15 15:12:10 +01:00 committed by GitHub
parent 2eaf794b17
commit 99cd866eba
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;