summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine ext:(%22) <lester@lsces.co.uk>2012-04-30 20:08:15 +0100
committerLester Caine ext:(%22) <lester@lsces.co.uk>2012-04-30 20:08:15 +0100
commit68c51c94381c296e235fbdfbb4394f06b7684191 (patch)
tree8d28d29217c0609515106bda4677896df89ec84d
parent83ee2ff5e432120993b08704817553245e8ac13b (diff)
downloadarticles-68c51c94381c296e235fbdfbb4394f06b7684191.tar.gz
articles-68c51c94381c296e235fbdfbb4394f06b7684191.tar.bz2
articles-68c51c94381c296e235fbdfbb4394f06b7684191.zip
Check user_id exists before using
-rw-r--r--templates/center_list_articles.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/center_list_articles.php b/templates/center_list_articles.php
index a6343de..ced28b6 100644
--- a/templates/center_list_articles.php
+++ b/templates/center_list_articles.php
@@ -38,7 +38,7 @@ if( !empty( $moduleParams )) {
if( empty( $listHash['user_id'] )) {
if( !empty( $gQueryUserId )) {
$listHash['user_id'] = $gQueryUserId;
- } elseif( $_REQUEST['user_id'] ) {
+ } elseif( isset( $_REQUEST['user_id'] ) ) {
$listHash['user_id'] = $_REQUEST['user_id'];
}
}