From: scyrma Date: Fri, 25 Jan 2008 02:43:52 +0000 (+0000) Subject: MDL-12565 : use the right table X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=67e21b0e2bc1a961fb99b0e8ff611ef9214a8b36;p=moodle.git MDL-12565 : use the right table --- diff --git a/tag/lib.php b/tag/lib.php index 788c49e25a..272e158f08 100644 --- a/tag/lib.php +++ b/tag/lib.php @@ -907,7 +907,7 @@ function tag_instance_table_cleanup() { FROM (SELECT sq2.* FROM {$CFG->prefix}tag_instance sq2 - LEFT JOIN {$CFG->prefix}{$type->itemtype} item + LEFT JOIN {$CFG->prefix}tag item ON sq2.itemid = item.id WHERE item.id IS NULL AND sq2.itemtype = '{$type->itemtype}')