summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/mod_recent_posts.php2
-rw-r--r--modules/mod_recent_posts.tpl7
2 files changed, 4 insertions, 5 deletions
diff --git a/modules/mod_recent_posts.php b/modules/mod_recent_posts.php
index 5990023..b116202 100644
--- a/modules/mod_recent_posts.php
+++ b/modules/mod_recent_posts.php
@@ -27,7 +27,7 @@ if( !empty( $module_params['b'] ) ) {
} elseif( !empty( $_REQUEST['b'] ) && empty( $module_params['all_boards'] ) ) {
$listHash['board_id'] = $_REQUEST['b'];
}
-$_template->tpl_vars['modRecentPostsBoardId'] = new Smarty_variable( !empty( $listHash['board_id'] );
+$_template->tpl_vars['modRecentPostsBoardId'] = new Smarty_variable( !empty( $listHash['board_id'] ) );
if( BitBase::verifyId( $gQueryUserId ) ) {
$listHash['user_id'] = $gQueryUserId;
diff --git a/modules/mod_recent_posts.tpl b/modules/mod_recent_posts.tpl
index b165984..ae68fba 100644
--- a/modules/mod_recent_posts.tpl
+++ b/modules/mod_recent_posts.tpl
@@ -1,7 +1,6 @@
-{* $Header$ *}
{strip}
-{if $gBitSystem->isPackageActive('boards') && {$modLastBoardPosts}
- {bitmodule title="$moduleTitle" name="last_board_posts"}
+{if $gBitSystem->isPackageActive('boards') && $modLastBoardPosts}
+ {bitmodule title=$moduleTitle name="last_board_posts"}
<ul class="boards">
{section name=ix loop=$modLastBoardPosts}
<li class="{cycle values="odd,even"}">
@@ -15,4 +14,4 @@
</ul>
{/bitmodule}
{/if}
-{/strip} \ No newline at end of file
+{/strip}