summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspider@app2 <spiderr@bitweaver.org>2016-09-08 20:32:45 -0400
committerspider@app2 <spiderr@bitweaver.org>2016-09-08 20:32:45 -0400
commitc2c3f1f2c08ad560700fb6097b556f6e7daf40be (patch)
tree0f444bff769110b6e8761a79d1c6a7454de03ea8
parent81e553e4cb57ac4f7ee64af845f59d61364e3262 (diff)
downloadstats-c2c3f1f2c08ad560700fb6097b556f6e7daf40be.tar.gz
stats-c2c3f1f2c08ad560700fb6097b556f6e7daf40be.tar.bz2
stats-c2c3f1f2c08ad560700fb6097b556f6e7daf40be.zip
fix NULL with Stats query
-rw-r--r--Statistics.php2
1 files changed, 1 insertions, 1 deletions
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'];