diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/tags.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/lib/tags.php b/engine/lib/tags.php index 3c65c2a7a..77db25348 100644 --- a/engine/lib/tags.php +++ b/engine/lib/tags.php @@ -92,6 +92,10 @@ function get_tags($threshold = 1, $limit = 10, $metadata_name = "", $entity_type if (!empty($metadata_name)) { $metadata_name = (int) get_metastring_id($metadata_name); + // test if any metadata with that name + if (!$metadata_name) { + return false; // no matches so short circuit + } } else { $metadata_name = 0; } |