Skip to content

Commit

Permalink
fixes deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ebellempire committed May 21, 2024
1 parent 403f7af commit eefba31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/helpers/ItemJsonifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ private static function getDublinText( $element, $formatted = false )
$raw = metadata( 'item', array( 'Dublin Core', $element ) );
if( ! $formatted )
$raw = strip_formatting( $raw );
return html_entity_decode( $raw );
return $raw ? html_entity_decode( $raw ) : null;
}

private static function getItemTypeText( $element, $formatted = false )
{
$raw = metadata( 'item', array( 'Item Type Metadata', $element ) );
if( ! $formatted )
$raw = strip_formatting( $raw );
return html_entity_decode( $raw );
return $raw ? html_entity_decode( $raw ) : null;
}

private static function getContributor($item)
Expand Down

0 comments on commit eefba31

Please sign in to comment.