diff options
Diffstat (limited to 'modules/mod_recent_posts.php')
| -rw-r--r-- | modules/mod_recent_posts.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/mod_recent_posts.php b/modules/mod_recent_posts.php index b116202..d39a93d 100644 --- a/modules/mod_recent_posts.php +++ b/modules/mod_recent_posts.php @@ -21,7 +21,12 @@ if( !empty( $moduleParams ) ) { extract( $moduleParams ); } -$listHash = array( 'user_id' => $gQueryUserId, 'sort_mode' => 'created_desc', 'max_records' => $module_rows ); +$listHash = array( 'user_id' => $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'] ) ) { |
