diff options
| author | spiderr <spider@viovio.com> | 2012-06-06 16:15:21 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2012-06-06 16:15:21 -0400 |
| commit | 24b8b021b4c19ea8149305f0f1d7f464d4cf35cc (patch) | |
| tree | 71815144acd110eafa92cf616d267a3d726f402b | |
| parent | ad0a84838ab5a8a318812d21fcb590bf4edc3af8 (diff) | |
| download | newsletters-24b8b021b4c19ea8149305f0f1d7f464d4cf35cc.tar.gz newsletters-24b8b021b4c19ea8149305f0f1d7f464d4cf35cc.tar.bz2 newsletters-24b8b021b4c19ea8149305f0f1d7f464d4cf35cc.zip | |
fix parameter checking in getDisplayUrlFromHash
| -rw-r--r-- | BitNewsletter.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/BitNewsletter.php b/BitNewsletter.php index 64fb46b..316704f 100644 --- a/BitNewsletter.php +++ b/BitNewsletter.php @@ -379,14 +379,14 @@ class BitNewsletter extends LibertyContent { * @param object $pNewsletterId of the item to use * @return object Url String */ - public static function getDisplayUrlFromHash( $pHash ) { + public static function getDisplayUrlFromHash( $pParamHash ) { global $gBitSystem; $ret = NULL; - if( BitBase::verifyId( $pHash['newsletter_id'] ) ) { + if( BitBase::verifyId( $pParamHash['nl_id'] ) ) { if( $gBitSystem->isFeatureActive( 'pretty_urls' ) ) { - $ret = NEWSLETTERS_PKG_URL.$pNewsletterId; + $ret = NEWSLETTERS_PKG_URL.$pParamHash['nl_id']; } else { - $ret = NEWSLETTERS_PKG_URL.'index.php?nl_id='.$pHash['newsletter_id']; + $ret = NEWSLETTERS_PKG_URL.'index.php?nl_id='.$pParamHash['nl_id']; } } else { $ret = NEWSLETTERS_PKG_URL.'index.php'; @@ -419,4 +419,3 @@ class BitNewsletter extends LibertyContent { } -?> |
