diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-11-14 21:17:42 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-11-14 21:17:42 +0000 |
commit | 9fb9b8565d6a95df0264ef0054106df6b2d3943e (patch) | |
tree | 72554a01a206af80e92768bfa63cce698a76018a /engine/lib | |
parent | 7d3cdbc48ca7b8b43f7fee11d9931a7f14c64334 (diff) | |
download | elgg-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
Diffstat (limited to 'engine/lib')
-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; } |