$gQueryUserId, 'sort_mode' => 'created_desc' ]; if( !empty( $moduleParams['module_rows'] ) ) { $listHash['max_records'] = $moduleParams['module_rows']; } if( !empty( $module_params['b'] ) ) { $listHash['board_id'] = $module_params['b']; } elseif( !empty( $_REQUEST['b'] ) && empty( $module_params['all_boards'] ) ) { $listHash['board_id'] = $_REQUEST['b']; } $gBitSmarty->assign( 'modRecentPostsBoardId', !empty( $listHash['board_id'] ) ); if( BitBase::verifyId( $gQueryUserId ) ) { $listHash['user_id'] = $gQueryUserId; } $post = new BitBoardPost(); if( $postList = $post->getList( $listHash ) ) { $gBitSmarty->assign( 'modLastBoardPosts', $postList ); } ?>