diff options
| author | lsces <lester@lsces.co.uk> | 2013-10-04 16:03:29 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2013-10-04 16:03:29 +0100 |
| commit | ef9428b22fc65062a5e5183d9e07a1ec38c9195f (patch) | |
| tree | e8a44ba766000b08660cbb43c9ed080e1425782c /modules | |
| parent | a88469351d9667b157ed36476d4681e9ab3ca58f (diff) | |
| download | articles-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.php | 4 |
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 ); ?> |
