mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-01 18:30:59 +01:00
Fix rendering issue for LDAP configuration provider transactions
Summary: Fixes T4290. At least one of the fields (`realname`) may have a list of items, and `strlen(array('first', 'last'))` produces the warning and stack trace in T4290. Test Plan: - Edited `realname` from an array value to an array value. - Hit error. - Applied patch. - No more error. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T4290 Differential Revision: https://secure.phabricator.com/D7905
This commit is contained in:
parent
1cb8f0b393
commit
324ee4e4d5
1 changed files with 1 additions and 1 deletions
|
@ -361,7 +361,7 @@ final class PhabricatorAuthProviderLDAP
|
|||
$label);
|
||||
}
|
||||
|
||||
if (!strlen($old)) {
|
||||
if ($old === null || $old === '') {
|
||||
return pht(
|
||||
'%s set the "%s" value to "%s".',
|
||||
$xaction->renderHandleLink($author_phid),
|
||||
|
|
Loading…
Reference in a new issue