fixed pagelinks bug
This commit is contained in:
parent
3030c3820f
commit
b0317d50fb
1 changed files with 4 additions and 2 deletions
|
|
@ -55,8 +55,10 @@ class LinksUpdate {
|
|||
if ( count( $del ) ) {
|
||||
$batch = new LinkBatch( $del );
|
||||
$set = $batch->constructSet( 'pl', $dbw );
|
||||
$sql = "DELETE FROM $pagelinks WHERE pl_from={$this->mId} AND ($set)";
|
||||
$dbw->query( $sql, $fname );
|
||||
if ( $set ) {
|
||||
$sql = "DELETE FROM $pagelinks WHERE pl_from={$this->mId} AND ($set)";
|
||||
$dbw->query( $sql, $fname );
|
||||
}
|
||||
}
|
||||
} else {
|
||||
# Delete everything
|
||||
|
|
|
|||
Loading…
Reference in a new issue