From: Tim Starling Date: Sat, 28 May 2005 10:08:08 +0000 (+0000) Subject: fixed pagelinks bug X-Git-Tag: 1.5.0alpha2~63 X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=commitdiff_plain;h=b0317d50fba6653def43bce6edfe700a034a697a;p=lhc%2Fweb%2Fwiklou.git fixed pagelinks bug --- diff --git a/includes/LinksUpdate.php b/includes/LinksUpdate.php index 617b2f9ea8..f01beb2011 100644 --- a/includes/LinksUpdate.php +++ b/includes/LinksUpdate.php @@ -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