From 039e1bf8c13232a1fb6330f20a8fa91d3c419689 Mon Sep 17 00:00:00 2001 From: momo-i Date: Tue, 2 Sep 2008 14:19:35 +0000 Subject: Fixed my misunderstanding --- lib/class/catalog.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/class') diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php index 3285ca64..a6b5136a 100644 --- a/lib/class/catalog.class.php +++ b/lib/class/catalog.class.php @@ -1502,7 +1502,7 @@ class Catalog { $db_results = Dba::query($sql); // Now nuke the tags themselves - $sql = "DELETE FROM `tag` USING `tag` LEFT JOIN `tag_map` ON `tag`.`map_id`=`tag_map`.`tag_id` " . + $sql = "DELETE FROM `tag` USING `tag` LEFT JOIN `tag_map` ON `tag`.`id`=`tag_map`.`tag_id` " . "WHERE `tag_map`.`id` IS NULL"; $db_results = Dba::query($sql); -- cgit