mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 00:32:42 +01:00
Fix PHP 8.1 strlen(null) in DiffusionView linkBrowse()
Summary: Fix PHP 8.1 strlen(null) in DiffusionView linkBrowse(). Fixes T15542 Test Plan: # Go into a diff (eg https://my.phorge.site/D1234) # Click on the Revision Contents - History tab # Click on a base link (the short git revision ID) Reviewers: O1 Blessed Committers, avivey Reviewed By: O1 Blessed Committers, avivey Subscribers: speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Maniphest Tasks: T15542 Differential Revision: https://we.phorge.it/D25340
This commit is contained in:
parent
fb822ba849
commit
3703588e9d
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ abstract class DiffusionView extends AphrontView {
|
|||
$display_name = idx($details, 'name');
|
||||
unset($details['name']);
|
||||
|
||||
if (strlen($display_name)) {
|
||||
if (phutil_nonempty_string($display_name)) {
|
||||
$display_name = phutil_tag(
|
||||
'span',
|
||||
array(
|
||||
|
|
Loading…
Reference in a new issue