Fix fatal error in rcprop=loginfo
authorCatrope <roan.kattouw@gmail.com>
Mon, 10 Sep 2012 20:15:59 +0000 (13:15 -0700)
committerCatrope <roan.kattouw@gmail.com>
Mon, 10 Sep 2012 23:44:43 +0000 (16:44 -0700)
There was a recentchanges row on enwiki whose rc_params looked like
array('4::tags'=>array('db-g11')), and the tag name wasn't set
recursively so the inner array didn't get a tag name.

This still generates invalid XML of course, because <4::tags> isn't a
valid tag, but at least it doesn't fatal any more. RAWR XML GRUMBLE

Change-Id: Ibb775df4bd010bdce5632914f789230d8626c9e7

includes/api/ApiQueryLogEvents.php

index f2fd425..e3f1505 100644 (file)
@@ -262,7 +262,7 @@ class ApiQueryLogEvents extends ApiQueryBase {
                                break;
                }
                if ( !is_null( $params ) ) {
-                       $result->setIndexedTagName( $params, 'param' );
+                       $result->setIndexedTagName_recursive( $params, 'param' );
                        $vals = array_merge( $vals, $params );
                }
                return $vals;