diff options
| author | Lester Caine ext:(%22) <lester@lsces.co.uk> | 2012-04-30 20:08:15 +0100 |
|---|---|---|
| committer | Lester Caine ext:(%22) <lester@lsces.co.uk> | 2012-04-30 20:08:15 +0100 |
| commit | 68c51c94381c296e235fbdfbb4394f06b7684191 (patch) | |
| tree | 8d28d29217c0609515106bda4677896df89ec84d | |
| parent | 83ee2ff5e432120993b08704817553245e8ac13b (diff) | |
| download | articles-68c51c94381c296e235fbdfbb4394f06b7684191.tar.gz articles-68c51c94381c296e235fbdfbb4394f06b7684191.tar.bz2 articles-68c51c94381c296e235fbdfbb4394f06b7684191.zip | |
Check user_id exists before using
| -rw-r--r-- | templates/center_list_articles.php | 2 |
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']; } } |
