From: Aryeh Gregor Date: Wed, 30 Jul 2008 19:55:44 +0000 (+0000) Subject: Fix fatal error trying to run parser tests: X-Git-Tag: 1.31.0-rc.0~46269 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=9fb6633febcfd341ee0f394de945b9a1a67145b5;p=lhc%2Fweb%2Fwiklou.git Fix fatal error trying to run parser tests: 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 --- diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 2cb85d2cc5..c270ffcc29 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -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 ) {