diff --git a/src/classes/entities/class-tainacan-item.php b/src/classes/entities/class-tainacan-item.php index d565ac2ba..f32977bac 100644 --- a/src/classes/entities/class-tainacan-item.php +++ b/src/classes/entities/class-tainacan-item.php @@ -609,7 +609,7 @@ class Item extends Entity { } // Some checks to see if things are really ok - if ( !($metadatum instanceof \Tainacan\Entities\Metadatum) ) { + if ( !($metadatum_object instanceof \Tainacan\Entities\Metadatum) ) { return $return; } else { // Makes sure the current Metadatum is desired