MDL-12565 : use the right table

This commit is contained in:
scyrma 2008-01-25 02:43:52 +00:00
parent dbf8c19cc5
commit 67e21b0e2b

View File

@ -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}')