Skip to content

Commit

Permalink
Fix PHP deprecated passing null to parameter 1 of type string is depr…
Browse files Browse the repository at this point in the history
…ecated
  • Loading branch information
francoisjacquet committed Sep 11, 2023
1 parent 14c9f1e commit 2361824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Discipline/includes/ReferralLog.fnc.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function ReferralLogsGetReferralHTML( $referral )
elseif ( $field_type === 'multiple_checkbox' )
{
// Multiple checkbox fields
$value = str_replace( '||', ', ', mb_substr( $value, 2, -2 ) );
$value = str_replace( '||', ', ', mb_substr( (string) $value, 2, -2 ) );
}
elseif ( $field_type === 'numeric' )
{
Expand Down

0 comments on commit 2361824

Please sign in to comment.