PHP Parse error: syntax error, unexpected $end in ./maintenance/purgeOldText.inc on line 63
# 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" );
$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" );