diff options
| author | Christian Fowler <spider@viovio.com> | 2007-11-25 04:44:39 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2007-11-25 04:44:39 +0000 |
| commit | a89ad6ab3b46b4aa6b04e065f759469d9c813da8 (patch) | |
| tree | 052e5c146195812456681050ac1812389505c6fa /modules | |
| parent | b31822b44a353c8f24dbb1d0301ed0665ff13eda (diff) | |
| download | liberty-a89ad6ab3b46b4aa6b04e065f759469d9c813da8.tar.gz liberty-a89ad6ab3b46b4aa6b04e065f759469d9c813da8.tar.bz2 liberty-a89ad6ab3b46b4aa6b04e065f759469d9c813da8.zip | |
add support for an array of content_type_guids to getList
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_last_comments.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/mod_last_comments.php b/modules/mod_last_comments.php index 3ce3677..0aa4849 100644 --- a/modules/mod_last_comments.php +++ b/modules/mod_last_comments.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_liberty/modules/mod_last_comments.php,v 1.4 2007/09/22 15:07:31 nickpalmer Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_liberty/modules/mod_last_comments.php,v 1.5 2007/11/25 04:44:39 spiderr Exp $ * @package liberty * @subpackage modules */ @@ -31,8 +31,8 @@ if (!empty($params['pigeonholes'])) { $listHash['pigeonholes']['root_filter'] = $params['pigeonholes']; } -if( !empty( $params['root_content_type_guid'] ) && in_array( $params['root_content_type_guid'], array_keys( $gLibertySystem->mContentTypes ))) { - if (empty($moduleTitle)) { +if( !empty( $params['root_content_type_guid'] ) ) { + if( empty($moduleTitle) && is_string( $params['root_content_type_guid'] ) ) { $moduleTitle = $gLibertySystem->mContentTypes[$params['root_content_type_guid']]['content_description'].' '.tra( 'Comments' ); } $listHash['root_content_type_guid'] = $params['root_content_type_guid']; |
