https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112743

Revision: 112743
Author:   catrope
Date:     2012-02-29 23:41:33 +0000 (Wed, 29 Feb 2012)
Log Message:
-----------
1.19wmf1: Add (array) casts in ArticleFeedbackv5 to shut up notices. Will also 
add in trunk

Modified Paths:
--------------
    
branches/wmf/1.19wmf1/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5Utils.php

Modified: 
branches/wmf/1.19wmf1/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5Utils.php
===================================================================
--- 
branches/wmf/1.19wmf1/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5Utils.php
        2012-02-29 23:36:50 UTC (rev 112742)
+++ 
branches/wmf/1.19wmf1/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5Utils.php
        2012-02-29 23:41:33 UTC (rev 112743)
@@ -177,7 +177,7 @@
 
                 $dbw->begin();
 
-               foreach ( $filters as $filter ) {
+               foreach ( (array)$filters as $filter ) {
                        $rows[] = array(
                                'afc_page_id'      => $pageId,
                                'afc_filter_name'  => $filter,
@@ -196,7 +196,7 @@
 
                $value = $decrement ? 'afc_filter_count - 1' : 
'afc_filter_count + 1';
 
-               foreach ( $filters as $filter ) {
+               foreach ( (array)$filters as $filter ) {
                        # Update each row with the new count.
                        $dbw->update(
                                'aft_article_filter_count',


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

Reply via email to