summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-08-25 08:26:02 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-08-25 08:26:02 +0000
commit1a20e052c92b93c836165dd1e3afd0e630668e03 (patch)
treee29fe2ccd27e6fb06876f06f105438776ddb04d5
parent35ff914196aa07c7fb960f8b296801a58b4be3a1 (diff)
downloadpigeonholes-1a20e052c92b93c836165dd1e3afd0e630668e03.tar.gz
pigeonholes-1a20e052c92b93c836165dd1e3afd0e630668e03.tar.bz2
pigeonholes-1a20e052c92b93c836165dd1e3afd0e630668e03.zip
clean up code and indent with tabs
-rw-r--r--Pigeonholes.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/Pigeonholes.php b/Pigeonholes.php
index 0226c9b..1842cf0 100644
--- a/Pigeonholes.php
+++ b/Pigeonholes.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.102 2007/08/25 08:20:46 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.103 2007/08/25 08:26:02 squareing Exp $
*
* +----------------------------------------------------------------------+
* | Copyright ( c ) 2004, bitweaver.org
@@ -17,7 +17,7 @@
* Pigeonholes class
*
* @author xing <xing@synapse.plus.com>
- * @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'] );