@@ -77,6 +77,7 @@ $object->fetch($id, $ref);
$permissiontoadd = $user->rights->propal->creer;
// Security check
+$socid = '';
if (!empty($user->socid)) {
$socid = $user->socid;
}