Index: branches/wmf/1.19wmf1/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5Utils.php |
— | — | @@ -177,7 +177,7 @@ |
178 | 178 | |
179 | 179 | $dbw->begin(); |
180 | 180 | |
181 | | - foreach ( $filters as $filter ) { |
| 181 | + foreach ( (array)$filters as $filter ) { |
182 | 182 | $rows[] = array( |
183 | 183 | 'afc_page_id' => $pageId, |
184 | 184 | 'afc_filter_name' => $filter, |
— | — | @@ -196,7 +196,7 @@ |
197 | 197 | |
198 | 198 | $value = $decrement ? 'afc_filter_count - 1' : 'afc_filter_count + 1'; |
199 | 199 | |
200 | | - foreach ( $filters as $filter ) { |
| 200 | + foreach ( (array)$filters as $filter ) { |
201 | 201 | # Update each row with the new count. |
202 | 202 | $dbw->update( |
203 | 203 | 'aft_article_filter_count', |