summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2013-10-04 16:03:29 +0100
committerlsces <lester@lsces.co.uk>2013-10-04 16:03:29 +0100
commitef9428b22fc65062a5e5183d9e07a1ec38c9195f (patch)
treee8a44ba766000b08660cbb43c9ed080e1425782c /modules
parenta88469351d9667b157ed36476d4681e9ab3ca58f (diff)
downloadarticles-ef9428b22fc65062a5e5183d9e07a1ec38c9195f.tar.gz
articles-ef9428b22fc65062a5e5183d9e07a1ec38c9195f.tar.bz2
articles-ef9428b22fc65062a5e5183d9e07a1ec38c9195f.zip
Prevent overwrite of $articles object
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_articles.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mod_articles.php b/modules/mod_articles.php
index 155bce5..a7d63a1 100644
--- a/modules/mod_articles.php
+++ b/modules/mod_articles.php
@@ -41,7 +41,7 @@ $getHash['sort_mode'] = $sort_mode;
$getHash['max_records'] = !empty( $module_rows ) ? $module_rows : $gBitSystem->getConfig( 'articles_max_list' );
$getHash['topic_name'] = !empty( $module_params['topic_name'] ) ? $module_params['topic_name'] : NULL;
$getHash['topic_id'] = !empty( $module_params['topic_id'] ) ? $module_params['topic_id'] : NULL;
-$articles = $articles->getList( $getHash );
+$articlelist = $articles->getList( $getHash );
if( ( !empty( $module_params['topic_id'] ) || !empty( $module_params['topic_name'] ) ) && empty($moduleParams['title']) && !empty( $articles ) ) {
$_template->tpl_vars['moduleTitle'] = new Smarty_variable( $articles[0]['topic_name'] );
@@ -53,5 +53,5 @@ if( ( !empty( $module_params['topic_id'] ) || !empty( $module_params['topic_name
$_template->tpl_vars['params'] = new Smarty_variable( !empty( $moduleParams['params'] ) );
$_template->tpl_vars['listtype'] = new Smarty_variable( ( isset($module_params['list_type']) && (strncasecmp($module_params['list_type'], 'u', 1) == 0) ) ? 'ul' : 'ol' );
-$_template->tpl_vars['modArticles'] = new Smarty_variable( $articles );
+$_template->tpl_vars['modArticles'] = new Smarty_variable( $articlelist );
?>