bug fix on typo
git-svn-id: http://piwigo.org/svn/trunk@636 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
9064686d99
commit
964f977401
1 changed files with 6 additions and 6 deletions
|
@ -580,12 +580,12 @@ SELECT COUNT(DISTINCT(id)) AS nb_total_images
|
|||
$page['where'].= date( 'Y-m-d', $date )."'";
|
||||
if ( isset( $forbidden ) ) $page['where'].= ' AND '.$forbidden;
|
||||
|
||||
$query = 'SELECT COUNT(DISTINCT(id)) AS nb_total_images';
|
||||
$query.= ' FROM '.IMAGES_TABLE;
|
||||
$query.= ' INNER JOIN '.IMAGE_CATEGORY_TABLE.'AS ic';
|
||||
$query.= ' ON id = ic.image_id';
|
||||
$query.= $page['where'];
|
||||
$query.= ';';
|
||||
$query = '
|
||||
SELECT COUNT(DISTINCT(id)) AS nb_total_images
|
||||
FROM '.IMAGES_TABLE.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic
|
||||
ON id = ic.image_id
|
||||
'.$page['where'].'
|
||||
;';
|
||||
}
|
||||
// categories containing recent pictures
|
||||
else if ( $page['cat'] == 'recent_cats' )
|
||||
|
|
Loading…
Reference in a new issue