summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2007-12-07 23:27:42 +0000
committerwjames5 <will@tekimaki.com>2007-12-07 23:27:42 +0000
commit815bf20cf3f30bbe3532e3f01bf99a13e0b0e91d (patch)
treed49b155a7e70366d73f3b1a3c9a2b3062e4aacc2
parent256b880e52355e9c5a376b511cd687fecd82bebe (diff)
downloadtags-815bf20cf3f30bbe3532e3f01bf99a13e0b0e91d.tar.gz
tags-815bf20cf3f30bbe3532e3f01bf99a13e0b0e91d.tar.bz2
tags-815bf20cf3f30bbe3532e3f01bf99a13e0b0e91d.zip
tag param should be set and not empty to cause the join
-rwxr-xr-xLibertyTag.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/LibertyTag.php b/LibertyTag.php
index d7ce317..21b6adb 100755
--- a/LibertyTag.php
+++ b/LibertyTag.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_tags/LibertyTag.php,v 1.33 2007/12/03 18:08:10 spiderr Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_tags/LibertyTag.php,v 1.34 2007/12/07 23:27:42 wjames5 Exp $
* @package tags
*
* @copyright Copyright (c) 2004-2006, bitweaver.org
@@ -624,7 +624,7 @@ function tags_content_list_sql( &$pObject, $pParamHash = NULL ) {
global $gBitSystem;
$ret = array();
- if (isset($pParamHash['tags'])){
+ if (isset($pParamHash['tags']) && !empty($pParamHash['tags'])){
$ret['select_sql'] = ", tgc.`tag_id`, tgc.`tagger_id`, tgc.`tagged_on`";
$ret['join_sql'] = " INNER JOIN `".BIT_DB_PREFIX."tags_content_map` tgc ON ( lc.`content_id`=tgc.`content_id` )
INNER JOIN `".BIT_DB_PREFIX."tags` tg ON ( tg.`tag_id`=tgc.`tag_id` )";