Swap SET and WHERE statements in ChangeTags::undefineTag
[lhc/web/wiklou.git] / includes / changetags / ChangeTags.php
index 3bb777e..b5bf488 100644 (file)
@@ -916,8 +916,8 @@ class ChangeTags {
                if ( $wgChangeTagsSchemaMigrationStage > MIGRATION_OLD ) {
                        $dbw->update(
                                'change_tag_def',
-                               [ 'ctd_name' => $tag ],
                                [ 'ctd_user_defined' => 0 ],
+                               [ 'ctd_name' => $tag ],
                                __METHOD__
                        );