Fix broken contribution listings with postgres by adding a new variable
[lhc/web/wiklou.git] / includes / ProtectionForm.php
index 254dda8..f96262f 100644 (file)
@@ -130,7 +130,7 @@ class ProtectionForm {
                $out .= "<table id='mwProtectSet'>";
                $out .= "<tbody>";
                $out .= "<tr>\n";
-               foreach( array_keys($this->mRestrictions) as $action ) {
+               foreach( $this->mRestrictions as $action => $required ) {
                        /* Not all languages have V_x <-> N_x relation */
                        $out .= "<th>" . wfMsgHtml( 'restriction-' . $action ) . "</th>\n";
                }