summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2007-09-11 19:40:04 +0000
committerChristian Fowler <spider@viovio.com>2007-09-11 19:40:04 +0000
commitbdeaf23f2a6a9f618c88fe549821353b52112fca (patch)
tree1c052221e8ddc6006d7405a275b2e98c543bab91 /modules
parent77dafa62f020de7bfd2c451cfd41a9ef3a161b92 (diff)
downloadboards-bdeaf23f2a6a9f618c88fe549821353b52112fca.tar.gz
boards-bdeaf23f2a6a9f618c88fe549821353b52112fca.tar.bz2
boards-bdeaf23f2a6a9f618c88fe549821353b52112fca.zip
add missing global gBitSystem in getDisplayUrl, add missing initial parameter, clean up to handle passed in parameter
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_recent_posts.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/mod_recent_posts.php b/modules/mod_recent_posts.php
index 9c233c9..31146e2 100644
--- a/modules/mod_recent_posts.php
+++ b/modules/mod_recent_posts.php
@@ -5,7 +5,7 @@
* - b : numeric id of board to show posts from
* - all_boards : display posts from all boards. Default behavior is to auto-track to board you are in.
*
- * @version $Header: /cvsroot/bitweaver/_bit_boards/modules/mod_recent_posts.php,v 1.6 2007/04/22 17:08:51 bitweaver Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_boards/modules/mod_recent_posts.php,v 1.7 2007/09/11 19:40:04 spiderr Exp $
* @package boards
* @subpackage modules
*/
@@ -17,7 +17,9 @@
include_once( BOARDS_PKG_PATH.'BitBoardPost.php' );
global $gBitSmarty, $gQueryUserId, $gBitSystem, $moduleParams;
-extract( $moduleParams );
+if( !empty( $moduleParams ) ) {
+ extract( $moduleParams );
+}
$listHash = array( 'user_id' => $gQueryUserId, 'sort_mode' => 'created_desc', 'max_records' => $module_rows );
if( !empty( $module_params['b'] ) ) {