From 1a20e052c92b93c836165dd1e3afd0e630668e03 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Sat, 25 Aug 2007 08:26:02 +0000 Subject: clean up code and indent with tabs --- Pigeonholes.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Pigeonholes.php') diff --git a/Pigeonholes.php b/Pigeonholes.php index 0226c9b..1842cf0 100644 --- a/Pigeonholes.php +++ b/Pigeonholes.php @@ -1,6 +1,6 @@ - * @version $Revision: 1.102 $ + * @version $Revision: 1.103 $ * @package pigeonholes */ @@ -495,11 +495,12 @@ class Pigeonholes extends LibertyAttachable { if( !empty( $pListHash['force_extras'] ) || ( !empty( $pListHash['load_extras'] ) && $aux['structure_id'] == @$pListHash['structure_id'] ) ) { $aux['path'] = $this->getPigeonholePath( $aux['structure_id'] ); $aux['display_path'] = Pigeonholes::getDisplayPath( $aux['path'] ); - if( empty( $pListHash['content_type_guid'] )) { - $aux['members'] = $this->getMemberList( array( 'content_id' => $aux['content_id'] )); - } else { - $aux['members'] = $this->getMemberList( array( 'content_id' => $aux['content_id'], 'content_type_guid' => $pListHash['content_type_guid'] )); - } + $aux['members'] = $this->getMemberList( + array( + 'content_id' => $aux['content_id'], + 'content_type_guid' => !empty( $pListHash['content_type_guid'] ) ? $pListHash['content_type_guid'] : NULL, + ) + ); //$aux['members_count'] = count( $aux['members'] ); if( $gBitSystem->getConfig( 'pigeonholes_list_style' ) == 'table' ) { $this->alphabetiseMembers( $aux['members'] ); -- cgit v1.3