diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2009-03-14 06:39:19 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2009-03-14 06:39:19 +0000 |
| commit | a5e4c1f684379b8371cb88babe221f89be7c93d4 (patch) | |
| tree | 90a2643c71d12334216ac2d2965d913b317561b3 | |
| parent | ad61b99873c122fcd06d61b72f42a15313502a51 (diff) | |
| download | liberty-a5e4c1f684379b8371cb88babe221f89be7c93d4.tar.gz liberty-a5e4c1f684379b8371cb88babe221f89be7c93d4.tar.bz2 liberty-a5e4c1f684379b8371cb88babe221f89be7c93d4.zip | |
bug #2686661: fix deletion of obsolete links in liberty_content_links
| -rw-r--r-- | plugins/filter.bitlinks.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/filter.bitlinks.php b/plugins/filter.bitlinks.php index 5d1f997..4b4008e 100644 --- a/plugins/filter.bitlinks.php +++ b/plugins/filter.bitlinks.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_liberty/plugins/filter.bitlinks.php,v 1.20 2008/11/11 09:28:29 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_liberty/plugins/filter.bitlinks.php,v 1.21 2009/03/14 06:39:19 squareing Exp $ * @package liberty */ @@ -540,7 +540,7 @@ class BitLinks extends BitBase { foreach( array_keys( $oldLinks ) as $to_title ) { if( !isset( $obsoleteLinks[$to_title] )) { - $query = "DELETE FROM `".BIT_DB_PREFIX."liberty_content_links` WHERE `from_content_id`=? and `to_title` = ?"; + $query = "DELETE FROM `".BIT_DB_PREFIX."liberty_content_links` WHERE `from_content_id`=? AND LOWER( `to_title` ) = ?"; $result = $gBitSystem->mDb->query( $query, array( $from_content_id, $to_title )); } } |
