Capitalization fix in memcached setting
[lhc/web/wiklou.git] / includes / SpecialStatistics.php
index 67fcc61..91d845c 100644 (file)
@@ -1,7 +1,14 @@
 <?php
+/**
+ *
+ * @package MediaWiki
+ * @subpackage SpecialPage
+ */
 
-function wfSpecialStatistics()
-{
+/**
+ * constructor
+ */
+function wfSpecialStatistics() {
        global $wgUser, $wgOut, $wgLang;
        $fname = "wfSpecialStatistics";
 
@@ -39,7 +46,7 @@ function wfSpecialStatistics()
        $row = $dbr->fetchObject( $res );
        $total = $row->total;
 
-       $sql = "SELECT COUNT(user_id) AS total FROM $user_rights WHERE user_rights LIKE '%sysop%'";
+       $sql = "SELECT COUNT(ur_user) AS total FROM $user_rights WHERE ur_rights LIKE '%sysop%'";
        $res = $dbr->query( $sql, $fname );
        $row = $dbr->fetchObject( $res );
        $admins = $row->total;