mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update functions.php
This commit is contained in:
parent
f005796a01
commit
e6f45ef2b6
@ -1360,16 +1360,16 @@ function get_db_stat ($mode)
|
||||
switch ($mode)
|
||||
{
|
||||
case 'usercount':
|
||||
return $row['total'];
|
||||
return isset($row['total']) ? $row['total'] : 0;
|
||||
break;
|
||||
case 'newestuser':
|
||||
return $row;
|
||||
break;
|
||||
case 'postcount':
|
||||
return $row['post_total'];
|
||||
return isset($row['post_total']) ? $row['post_total'] : 0;
|
||||
break;
|
||||
case 'topiccount':
|
||||
return $row['topic_total'];
|
||||
return isset($row['topic_total']) ? $row['topic_total'] : 0;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user