dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc1a14e
)
avoid a notice when nothing is found
author
Antoine Musso
<hashar@users.mediawiki.org>
Sun, 22 Apr 2007 20:23:08 +0000
(20:23 +0000)
committer
Antoine Musso
<hashar@users.mediawiki.org>
Sun, 22 Apr 2007 20:23:08 +0000
(20:23 +0000)
maintenance/purgeOldText.inc
patch
|
blob
|
history
diff --git
a/maintenance/purgeOldText.inc
b/maintenance/purgeOldText.inc
index
8938cc0
..
c4732e9
100644
(file)
--- a/
maintenance/purgeOldText.inc
+++ b/
maintenance/purgeOldText.inc
@@
-37,6
+37,7
@@
function PurgeRedundantText( $delete = false ) {
echo( "Searching for inactive text records..." );
$set = implode( ', ', $cur );
$res = $dbw->query( "SELECT old_id FROM $tbl_txt WHERE old_id NOT IN ( $set )" );
+ $old = array();
while( $row = $dbw->fetchObject( $res ) ) {
$old[] = $row->old_id;
}
@@
-59,4
+60,4
@@
function PurgeRedundantText( $delete = false ) {
}
-?>
\ No newline at end of file
+?>