summaryrefslogtreecommitdiff
path: root/includes/bit_setup_inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/bit_setup_inc.php')
-rw-r--r--includes/bit_setup_inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/bit_setup_inc.php b/includes/bit_setup_inc.php
index 2ccdf02..0ceff6a 100644
--- a/includes/bit_setup_inc.php
+++ b/includes/bit_setup_inc.php
@@ -68,7 +68,7 @@ if( $gBitSystem->isPackageActive( 'stats' )) {
function stats_referer_display_short( $pRefererUrl ) {
$ret = '';
- if( $urlHash = parse_url( $pRefererUrl ) ) {
+ if( ($urlHash = parse_url( $pRefererUrl )) && !empty( $urlHash['host'] ) ) {
$ret = $urlHash['host'];
// q= google and bing search param, p= yahoo search param
$searchStrings = array( 'q', 'p' );
@@ -82,7 +82,7 @@ if( $gBitSystem->isPackageActive( 'stats' )) {
}
}
} else {
- $ret = tra( 'Unknown URL' );
+// $ret = tra( 'Unknown URL' );
}
return $ret;
}