aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-14 21:17:42 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-14 21:17:42 +0000
commit9fb9b8565d6a95df0264ef0054106df6b2d3943e (patch)
tree72554a01a206af80e92768bfa63cce698a76018a
parent7d3cdbc48ca7b8b43f7fee11d9931a7f14c64334 (diff)
downloadelgg-9fb9b8565d6a95df0264ef0054106df6b2d3943e.tar.gz
elgg-9fb9b8565d6a95df0264ef0054106df6b2d3943e.tar.bz2
fixes #1169 as described on ticket
git-svn-id: http://code.elgg.org/elgg/trunk@3683 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/tags.php4
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;
}