diff options
| author | wjames5 <will@tekimaki.com> | 2007-12-07 23:27:42 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2007-12-07 23:27:42 +0000 |
| commit | 815bf20cf3f30bbe3532e3f01bf99a13e0b0e91d (patch) | |
| tree | d49b155a7e70366d73f3b1a3c9a2b3062e4aacc2 | |
| parent | 256b880e52355e9c5a376b511cd687fecd82bebe (diff) | |
| download | tags-815bf20cf3f30bbe3532e3f01bf99a13e0b0e91d.tar.gz tags-815bf20cf3f30bbe3532e3f01bf99a13e0b0e91d.tar.bz2 tags-815bf20cf3f30bbe3532e3f01bf99a13e0b0e91d.zip | |
tag param should be set and not empty to cause the join
| -rwxr-xr-x | LibertyTag.php | 4 |
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` )"; |
