From c2c3f1f2c08ad560700fb6097b556f6e7daf40be Mon Sep 17 00:00:00 2001 From: "spider@app2" Date: Thu, 8 Sep 2016 20:32:45 -0400 Subject: fix NULL with Stats query --- Statistics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Statistics.php b/Statistics.php index da912f7..3d01867 100644 --- a/Statistics.php +++ b/Statistics.php @@ -72,7 +72,7 @@ class Statistics extends BitBase { LEFT JOIN `".BIT_DB_PREFIX."stats_referer_users_map` srum ON(uu.`user_id`=srum.`user_id`) LEFT JOIN `".BIT_DB_PREFIX."stats_referer_urls` sru ON (sru.`referer_url_id`=srum.`referer_url_id`) $whereSql ORDER BY ".$this->mDb->convertSortmode( $pListHash['sort_mode'] ); - if( $rs = $this->mDb->query( $query, $bindVars, -1, $pListHash['offset'], ($gBitSystem->isLive() ? 1800 : NULL) ) ) { + if( $rs = $this->mDb->query( $query, $bindVars, -1, $pListHash['offset'], ($gBitSystem->isLive() ? 3600 : BIT_QUERY_DEFAULT) ) ) { while( $row = $rs->fetchRow() ) { $key = $row['hash_key']; -- cgit v1.3