diff options
| author | spiderr <spider@viovio.com> | 2012-06-05 17:55:08 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2012-06-05 17:55:08 -0400 |
| commit | 37a3666be87635dc06f613e19c1dbbac603edfa3 (patch) | |
| tree | c7ee278e444aeefb64f0e2feca13b2fa8e2560df | |
| parent | 3504901b4484b9a3cd0bdc55bd6bbbae734b7b80 (diff) | |
| download | boards-37a3666be87635dc06f613e19c1dbbac603edfa3.tar.gz boards-37a3666be87635dc06f613e19c1dbbac603edfa3.tar.bz2 boards-37a3666be87635dc06f613e19c1dbbac603edfa3.zip | |
empty check on topic_id
| -rw-r--r-- | BitBoardTopic.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BitBoardTopic.php b/BitBoardTopic.php index 3247b4e..b8ff03d 100644 --- a/BitBoardTopic.php +++ b/BitBoardTopic.php @@ -497,7 +497,7 @@ class BitBoardTopic extends LibertyMime { global $gBitSystem; $ret = NULL; - if( static::verifyId( $pParamHash['topic_id'] ) ) { + if( !empty( $pParamHash['topic_id'] ) && static::verifyId( $pParamHash['topic_id'] ) ) { if( $gBitSystem->isFeatureActive( 'pretty_urls' ) || $gBitSystem->isFeatureActive( 'pretty_urls_extended' ) ) { $rewrite_tag = $gBitSystem->isFeatureActive( 'pretty_urls_extended' ) ? 'view/':''; $ret = BOARDS_PKG_URL.$rewrite_tag."topic/".$pParamHash['topic_id']; |
