Fix undefined $ok in DatabaseUpdater::migrateComments
authorReedy <reedy@wikimedia.org>
Fri, 2 Mar 2018 16:24:50 +0000 (16:24 +0000)
committerReedy <reedy@wikimedia.org>
Fri, 2 Mar 2018 16:24:50 +0000 (16:24 +0000)
Change-Id: I608a693e688039526975ef5d3fe4c40c7679ed7b

includes/installer/DatabaseUpdater.php

index 500bc5a..7970d5d 100644 (file)
@@ -1227,7 +1227,7 @@ abstract class DatabaseUpdater {
                                "maintenance/migrateComments.php.\n"
                        );
                        $task = $this->maintenance->runChild( MigrateComments::class, 'migrateComments.php' );
-                       $task->execute();
+                       $ok = $task->execute();
                        $this->output( $ok ? "done.\n" : "errors were encountered.\n" );
                }
        }