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
fusiondirectory
Commits
952d59e0
Commit
952d59e0
authored
Apr 05, 2017
by
Côme Chilliet
Browse files
Avoid a PHP error in msgPool in corner cases
parent
77408346
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/class_msgPool.inc
View file @
952d59e0
...
...
@@ -691,17 +691,19 @@ class msgPool {
_
(
'delete operation'
),
_
(
'search operation'
),
_
(
'authentication'
));
if
(
isset
(
$typemap
[
$type
]))
{
$
headline
=
sprintf
(
_
(
'LDAP %s failed!'
),
$typemap
[
$type
]);
$
msg
=
sprintf
(
_
(
'LDAP %s failed!'
),
$typemap
[
$type
]);
}
else
{
$
headline
=
_
(
'LDAP operation failed!'
);
$
msg
=
_
(
'LDAP operation failed!'
);
}
/* Fill DN information */
if
(
$dn
!=
''
)
{
$
dn_info
=
'<br/><br/><i>'
.
_
(
'Object'
)
.
':</i> '
.
$dn
;
$
msg
.
=
'<br/><br/><i>'
.
_
(
'Object'
)
.
':</i> '
.
$dn
;
}
return
$headline
.
$dn_info
.
'<br/><br/><i>'
.
_
(
'Error'
)
.
':</i> '
.
$error
;
$msg
.
=
'<br/><br/><i>'
.
_
(
'Error'
)
.
':</i> '
.
$error
;
return
$msg
;
}
/*!
...
...
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