@@ -160,10 +160,10 @@ sub db_get_document_object { | |||
} | |||
$q = sqlquery($dbh, " | |||
SELECT tags.tag AS tag | |||
SELECT tags.tag AS name, tags.color AS color | |||
FROM documents_tags JOIN tags ON documents_tags.tagId = tags.id | |||
WHERE documentId = ? ORDER BY tag", $id); | |||
while(my ($tag) = $q->fetchrow_array()) { push @tags, $tag; } | |||
while(my ($tag) = $q->fetchrow_hashref()) { push @tags, $tag; } | |||
my %lang; | |||