Kipcool has submitted this change and it was merged.

Change subject: fixed bug array not initialized
......................................................................


fixed bug array not initialized

Change-Id: I4b5fa0762b2adad28ada908974285d05580bfb38
---
M OmegaWiki/SpecialOWStatistics.php
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Kipcool: Verified; Looks good to me, approved



diff --git a/OmegaWiki/SpecialOWStatistics.php 
b/OmegaWiki/SpecialOWStatistics.php
index 4552009..c0c3eca 100644
--- a/OmegaWiki/SpecialOWStatistics.php
+++ b/OmegaWiki/SpecialOWStatistics.php
@@ -260,6 +260,7 @@
                $dbr = wfGetDB( DB_SLAVE );
                $output = "";
 
+               $nbAtt = array();
                // Link attributes
                $sql = "SELECT attribute_mid, count(DISTINCT value_id) as tot ";
                $sql .= " FROM {$dc}_url_attribute_values" ;
@@ -276,6 +277,7 @@
 
                $output .= "<p><h2>Link attributes</h2>\n" . 
$this->createTable( $nbAtt ) . "</p>\n"  ;
 
+               $nbAtt = array();
                // Text attributes
                $sql = "SELECT attribute_mid, count(DISTINCT value_id) as tot ";
                $sql .= " FROM {$dc}_text_attribute_values" ;

-- 
To view, visit https://gerrit.wikimedia.org/r/49485
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I4b5fa0762b2adad28ada908974285d05580bfb38
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiLexicalData
Gerrit-Branch: master
Gerrit-Owner: Kipcool <[email protected]>
Gerrit-Reviewer: Kipcool <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to