summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2021-01-04 17:55:53 -0500
committerspiderr <spiderr@bitweaver.org>2021-01-04 17:55:53 -0500
commitc7448f9872a99bab4eee94161d2c6e923775b245 (patch)
tree81ac2d854b510d67452cafbd72ee38f11fadc62a
parentf3a671eaf468bef1d980a0edabfa96e5e5321a5d (diff)
downloadstats-c7448f9872a99bab4eee94161d2c6e923775b245.tar.gz
stats-c7448f9872a99bab4eee94161d2c6e923775b245.tar.bz2
stats-c7448f9872a99bab4eee94161d2c6e923775b245.zip
PHP7 warning
-rw-r--r--bit_setup_inc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/bit_setup_inc.php b/bit_setup_inc.php
index 1560fe9..84f7fbb 100644
--- a/bit_setup_inc.php
+++ b/bit_setup_inc.php
@@ -72,8 +72,9 @@ if( $gBitSystem->isPackageActive( 'stats' )) {
$ret = $urlHash['host'];
if( !empty( $urlHash['query'] ) && strpos( $urlHash['query'], 'q=' ) !== FALSE ) {
// google and bing search param
- parse_str( $urlHash['query'] );
- if( !empty( $q ) ) {
+ $result = array();
+ parse_str( $urlHash['query'], $result );
+ if( !empty( $result['q'] ) ) {
$ret .= '/...q='.$q;
}
} elseif( !empty( $urlHash['query'] ) && strpos( $urlHash['query'], 'p=' ) !== FALSE ) {