Double braces introduced in r74742 giving a fatal:
authorPlatonides <platonides@users.mediawiki.org>
Mon, 18 Oct 2010 17:42:14 +0000 (17:42 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Mon, 18 Oct 2010 17:42:14 +0000 (17:42 +0000)
PHP Parse error:  syntax error, unexpected $end in ./maintenance/purgeOldText.inc on line 63

maintenance/purgeOldText.inc

index 58b3fa1..38d12f2 100644 (file)
@@ -29,7 +29,7 @@ function PurgeRedundantText( $delete = false ) {
        # Get "active" text records from the archive table
        echo( "Searching for active text records in archive table..." );
        $res = $dbw->query( "SELECT DISTINCT ar_text_id FROM $tbl_arc" );
-       foreach ( $res as $row ) { {
+       foreach ( $res as $row ) {
                $cur[] = $row->ar_text_id;
        }
        echo( "done.\n" );
@@ -39,7 +39,7 @@ function PurgeRedundantText( $delete = false ) {
        $set = implode( ', ', $cur );
        $res = $dbw->query( "SELECT old_id FROM $tbl_txt WHERE old_id NOT IN ( $set )" );
        $old = array();
-       foreach ( $res as $row ) { {
+       foreach ( $res as $row ) {
                $old[] = $row->old_id;
        }
        echo( "done.\n" );