瀏覽代碼

bug

master
Pascal Gloor 5 年之前
父節點
當前提交
2e14b91fe9
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      cgi/autodoc.fcgi

+ 3
- 2
cgi/autodoc.fcgi 查看文件

@@ -170,11 +170,12 @@ sub db_get_document_object {
$q = sqlquery($dbh, "
SELECT
SUM(pw.count) AS count
l.short AS lang
l.short AS short
FROM pages_words pw
JOIN words w ON pw.wordID = w.id
JOIN lang l ON w.langId = l.id
WHERE pw.pageId = ?", $page->{id});
WHERE pw.pageId = ?
GROUP BY l.id", $page->{id});
while(my $h = $q->fetchrow_hashref()) {
$lang{$h->{lang}}=$h->{count};
}

Loading…
取消
儲存