diff options
| author | Christian Fowler <spider@viovio.com> | 2007-07-26 21:05:48 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2007-07-26 21:05:48 +0000 |
| commit | 232f4620ab3293cd6bc790c7f711d2bcacb1f66a (patch) | |
| tree | 60a649ead25c5b5d670f9bf4bad37cb788d3322d /boards_rss.php | |
| parent | 1eba62e1444f5790e7b68a91b1930d6277132403 (diff) | |
| download | boards-232f4620ab3293cd6bc790c7f711d2bcacb1f66a.tar.gz boards-232f4620ab3293cd6bc790c7f711d2bcacb1f66a.tar.bz2 boards-232f4620ab3293cd6bc790c7f711d2bcacb1f66a.zip | |
fix undefined var notices
Diffstat (limited to 'boards_rss.php')
| -rw-r--r-- | boards_rss.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/boards_rss.php b/boards_rss.php index 2942a08..c452749 100644 --- a/boards_rss.php +++ b/boards_rss.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_boards/boards_rss.php,v 1.2 2007/07/08 07:56:40 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_boards/boards_rss.php,v 1.3 2007/07/26 21:05:48 spiderr Exp $ * @package boards * @subpackage functions */ @@ -20,7 +20,8 @@ if(!empty($_REQUEST['u'])) { $gBitUser->login($_REQUEST['u'],$_REQUEST['p']); } -$board = new BitBoard($_REQUEST['b']); +$boardId = !empty( $_REQUEST['b'] ) ? $_REQUEST['b'] : NULL; +$board = new BitBoard( $boardId ); $board->load(); $board->parseData(); @@ -38,7 +39,9 @@ $rss->useCached( $rss_version_name, $cacheFile, $gBitSystem->getConfig( 'rssfeed $topic = new BitBoardTopic(); $pParamHash = array(); -$pParamHash['b'] =$_REQUEST['b']; +if( !empty( $_REQUEST['b'] ) ) { + $pParamHash['b'] = $_REQUEST['b']; +} $pParamHash['find'] =''; //TODO allow proper sort order $pParamHash['sort_mode'] = "llc_last_modified_desc"; |
