mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
Fix PHP 8.1 auth view strlen(null) error
Summary: Trying to view a Jira auth provider from https://my.phorge.site/auth/ results in strlen(): Passing null to parameter #1 ($string) of type string is deprecated This change fixes it Fixes T15634 Test Plan: Go to https://my.phorge.site/auth/ and have a Jira already setup. Click on Jira auth provider Confirm the page is displayed and no error is generated. Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Maniphest Tasks: T15634 Differential Revision: https://we.phorge.it/D25432
This commit is contained in:
parent
a65061ddc3
commit
a0fb344b94
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ final class PhabricatorAuthProviderConfigTransaction
|
||||||
$provider = $this->getProvider();
|
$provider = $this->getProvider();
|
||||||
if ($provider) {
|
if ($provider) {
|
||||||
$title = $provider->renderConfigPropertyTransactionTitle($this);
|
$title = $provider->renderConfigPropertyTransactionTitle($this);
|
||||||
if (strlen($title)) {
|
if (phutil_nonempty_string($title)) {
|
||||||
return $title;
|
return $title;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue