From: Roan Kattouw Date: Mon, 14 Nov 2011 09:16:30 +0000 (+0000) Subject: Fix for r102949: don't delete too much X-Git-Tag: 1.31.0-rc.0~26520 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=8ff0ef799f25a7aa011ae0434495ba2e36f9fef4;p=lhc%2Fweb%2Fwiklou.git Fix for r102949: don't delete too much --- diff --git a/maintenance/fixExtLinksProtocolRelative.php b/maintenance/fixExtLinksProtocolRelative.php index e10b194cc2..1a7025ad10 100644 --- a/maintenance/fixExtLinksProtocolRelative.php +++ b/maintenance/fixExtLinksProtocolRelative.php @@ -70,7 +70,7 @@ class FixExtLinksProtocolRelative extends LoggedUpdateMaintenance { ) ), __METHOD__, array( 'IGNORE' ) ); - $db->delete( 'externallinks', array( 'el_index' => $row->el_index ), __METHOD__ ); + $db->delete( 'externallinks', array( 'el_index' => $row->el_index, 'el_from' => $row->el_from, 'el_to' => $row->el_to ), __METHOD__ ); } $this->output( "Done, $count rows updated.\n" ); return true;