Feature_1255 :
- single quotes in queries - start using $conf['dblayer'] git-svn-id: http://piwigo.org/svn/trunk@4385 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
13ea9d50e3
commit
c96097529e
15 changed files with 101 additions and 24 deletions
|
|
@ -321,7 +321,8 @@ SELECT com.id AS comment_id
|
|||
ON u.'.$conf['user_fields']['id'].' = com.author_id
|
||||
WHERE '.implode('
|
||||
AND ', $page['where_clauses']).'
|
||||
GROUP BY comment_id
|
||||
GROUP BY comment_id, com.image_id, ic.category_id, com.author,
|
||||
com.author_id, com.date, com.content, com.validated
|
||||
ORDER BY '.$page['sort_by'].' '.$page['sort_order'];
|
||||
if ('all' != $page['items_number'])
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue