aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 72d48c1bf0..d35ca75ac4 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -45,6 +45,10 @@ function get_db_stat($mode)
ORDER BY user_id DESC
LIMIT 1";
break;
+ case 'topiccount':
+ $sql = "SELECT SUM(forum_topics) AS total
+ FROM ".FORUMS_TABLE;
+ break;
}
@@ -427,7 +431,7 @@ function validate_username($username)
// a UNION clause which would be very nice here :(
// So we have to use two queries
case 'mysql':
- $sql_users = "SELECT group_name AS username
+ $sql_users = "SELECT group_name AS username
FROM " . GROUPS_TABLE . "
WHERE LOWER(group_name) = '" . strtolower($username) . "'";
$sql_disallow = "SELECT disallow_username