CHANGE: ternary simplification (#34675)

This commit is contained in:
Jyhere
2025-07-01 20:34:09 +02:00
committed by GitHub
parent 24e3f31ba1
commit 787bd1d278
27 changed files with 33 additions and 33 deletions

View File

@@ -121,7 +121,7 @@ class MyModuleApi extends DolibarrApi
throw new RestException(403);
}
$socid = DolibarrApiAccess::$user->socid ? DolibarrApiAccess::$user->socid : 0;
$socid = DolibarrApiAccess::$user->socid ?: 0;
$restrictonsocid = 0; // Set to 1 if there is a field socid in table of object