From: Rob Church Date: Sun, 29 Jan 2006 17:37:23 +0000 (+0000) Subject: Fix overlooked hard-coded table name (reported in bug 4748) X-Git-Tag: 1.6.0~401 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=7a4277f6d13d05a20d64e69dc1ccbffc874c5dfc;p=lhc%2Fweb%2Fwiklou.git Fix overlooked hard-coded table name (reported in bug 4748) --- diff --git a/maintenance/purgeOldText.inc b/maintenance/purgeOldText.inc index 6a27550f27..9e6ee7a2ac 100644 --- a/maintenance/purgeOldText.inc +++ b/maintenance/purgeOldText.inc @@ -37,7 +37,7 @@ function PurgeRedundantText( $delete = false ) { # Get the IDs of all text records not in these sets echo( "Searching for inactive text records..." ); $set = implode( ', ', $cur ); - $res = $dbw->query( "SELECT old_id FROM text WHERE old_id NOT IN ( $set )" ); + $res = $dbw->query( "SELECT old_id FROM $tbl_text WHERE old_id NOT IN ( $set )" ); while( $row = $dbw->fetchObject( $res ) ) { $old[] = $row->old_id; }