Declares $metadatum before using it in get_ metadatas_as_html.
This commit is contained in:
parent
eec69df239
commit
29d4146617
|
@ -590,7 +590,9 @@ class Item extends Entity {
|
||||||
|
|
||||||
if (!is_null($args['metadata'])) {
|
if (!is_null($args['metadata'])) {
|
||||||
|
|
||||||
|
$metadatum = $args['metadata'];
|
||||||
$metadatum_object = null;
|
$metadatum_object = null;
|
||||||
|
|
||||||
if ( $metadatum instanceof \Tainacan\Entities\Metadatum ) {
|
if ( $metadatum instanceof \Tainacan\Entities\Metadatum ) {
|
||||||
$metadatum_object = $metadatum;
|
$metadatum_object = $metadatum;
|
||||||
} elseif ( is_int($metadatum) ) {
|
} elseif ( is_int($metadatum) ) {
|
||||||
|
|
Loading…
Reference in New Issue