Fix fatal error trying to run parser tests:
authorAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 30 Jul 2008 19:55:44 +0000 (19:55 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 30 Jul 2008 19:55:44 +0000 (19:55 +0000)
Notice: Undefined variable: prevResults in /var/www/trunk/phase3/maintenance/parserTests.inc on line 1098
Fatal error: Unsupported operand types in /var/www/trunk/phase3/maintenance/parserTests.inc on line 1098

maintenance/parserTests.inc

index 2cb85d2..c270ffc 100644 (file)
@@ -1085,6 +1085,8 @@ class DbTestPreviewer extends TestRecorder  {
                                'ff' => 'still FAILING test(s) :(',
                        );
 
+                       $prevResults = array();
+
                        $res = $this->db->select( 'testitem', array( 'ti_name', 'ti_success' ),
                                array( 'ti_run' => $this->prevRun ), __METHOD__ );
                        foreach ( $res as $row ) {