how did this work in the first place? x_x

This commit is contained in:
Shish 2009-10-08 14:22:18 +01:00
parent a7caf1e060
commit 89e72b0f02

View File

@ -97,7 +97,7 @@ class AdminPage implements Extension {
$database->Execute(" $database->Execute("
UPDATE tags UPDATE tags
SET count = COALESCE( SET count = COALESCE(
SELECT COUNT(image_id) FROM image_tags WHERE tag_id=tags.id GROUP BY tag_id, (SELECT COUNT(image_id) FROM image_tags WHERE tag_id=tags.id GROUP BY tag_id),
0 0
)"); )");
} }