summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Statistics.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/Statistics.php b/Statistics.php
index ab8f74b..58483bc 100644
--- a/Statistics.php
+++ b/Statistics.php
@@ -97,9 +97,11 @@ class Statistics extends BitBase {
$key = 'none';
if( !empty( $row['referer_url'] ) ) {
$parseUrl = parse_url( $row['referer_url'] );
- parse_str( $parseUrl['query'], $params );
- if( !empty( $params['adurl'] ) ) {
- parse_str( $params['adurl'], $params );
+ if( !empty( $parseUrl['query'] ) ) {
+ parse_str( $parseUrl['query'], $params );
+ if( !empty( $params['adurl'] ) ) {
+ parse_str( $params['adurl'], $params );
+ }
}
$key = $parseUrl['host'];
}