Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fd-plugins
Commits
b0b73671
Unverified
Commit
b0b73671
authored
Apr 25, 2019
by
Côme Chilliet
Browse files
🚑
fix(sinaps) Add missing casting to string
issue #5941
parent
678e867f
Changes
1
Show whitespace changes
Inline
Side-by-side
sinaps/include/class_sinapsRequest.inc
View file @
b0b73671
...
...
@@ -242,7 +242,7 @@ class sinapsRequest
if
(
isset
(
$personne
->
referenceCroisee
->
identifiantsExternes
))
{
foreach
(
$personne
->
referenceCroisee
->
identifiantsExternes
as
$ref
)
{
if
(
$ref
->
identifiantApplication
==
$identifiantApplication
)
{
$uuid
=
$ref
->
identifiantExterne
;
$uuid
=
(
string
)
$ref
->
identifiantExterne
;
}
elseif
(
in_array
(
$ref
->
identifiantApplication
,
$identifiantApplicationSync
))
{
$values
[
'supannAccount'
][
'supannRefId'
][]
=
'{'
.
$ref
->
identifiantApplication
.
'}'
.
$ref
->
identifiantExterne
;
}
...
...
@@ -272,12 +272,12 @@ class sinapsRequest
foreach
(
$personne
->
rattachements
->
rattachement
as
$rattachement
)
{
if
(
isset
(
$rattachement
->
roles
->
role
))
{
foreach
(
$rattachement
->
roles
->
role
as
$role
)
{
if
(
isset
(
$userRoleExists
[
$role
->
typeRole
]))
{
if
(
$userRoleExists
[
$role
->
typeRole
]
===
TRUE
)
{
if
(
isset
(
$userRoleExists
[
(
string
)
$role
->
typeRole
]))
{
if
(
$userRoleExists
[
(
string
)
$role
->
typeRole
]
===
TRUE
)
{
$deletion
=
FALSE
;
break
2
;
}
if
(
in_array_ics
(
$role
->
externe
->
typeExterne
,
$userRoleExists
[
$role
->
typeRole
]))
{
if
(
in_array_ics
(
(
string
)
$role
->
externe
->
typeExterne
,
$userRoleExists
[
(
string
)
$role
->
typeRole
]))
{
$deletion
=
FALSE
;
break
2
;
}
...
...
@@ -334,7 +334,7 @@ class sinapsRequest
trigger_error
(
'Ignore adresse non FR non ETR'
);
continue
;
}
if
(
$method
->
adresse
->
codeTypeAdresse
==
'ADRPERSO'
)
{
if
(
(
string
)
$method
->
adresse
->
codeTypeAdresse
==
'ADRPERSO'
)
{
$values
[
'user'
][
'homePostalAddress'
]
=
$adresse
;
}
else
{
$values
[
'user'
][
'postalAddress'
]
=
$adresse
;
...
...
Git Mirror User
@gitmirror
mentioned in commit
85ed184e
·
Apr 25, 2019
mentioned in commit
85ed184e
mentioned in commit 85ed184e10490f6ffcae293f249ab80b13d0145c
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment