Skip to content

Commit 2361824

Browse files
Fix PHP deprecated passing null to parameter 1 of type string is deprecated
1 parent 14c9f1e commit 2361824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/Discipline/includes/ReferralLog.fnc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function ReferralLogsGetReferralHTML( $referral )
221221
elseif ( $field_type === 'multiple_checkbox' )
222222
{
223223
// Multiple checkbox fields
224-
$value = str_replace( '||', ', ', mb_substr( $value, 2, -2 ) );
224+
$value = str_replace( '||', ', ', mb_substr( (string) $value, 2, -2 ) );
225225
}
226226
elseif ( $field_type === 'numeric' )
227227
{

0 commit comments

Comments
 (0)