From: cash Date: Sat, 14 Nov 2009 21:17:42 +0000 (+0000) Subject: fixes #1169 as described on ticket X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9fb9b8565d6a95df0264ef0054106df6b2d3943e;p=lorea%2Felgg.git fixes #1169 as described on ticket git-svn-id: http://code.elgg.org/elgg/trunk@3683 36083f99-b078-4883-b0ff-0f9b5a30f544 --- 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; }