mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 09:52:29 +02:00
- move #categories.date_last and nb_images to #user_cache_categories
git-svn-id: http://piwigo.org/svn/trunk@2324 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -286,10 +286,9 @@ SELECT id,name,uppercats,global_rank
|
||||
WHERE representative_picture_id IS NOT NULL
|
||||
;';
|
||||
$query_false = '
|
||||
SELECT id,name,uppercats,global_rank
|
||||
FROM '.CATEGORIES_TABLE.'
|
||||
WHERE nb_images != 0
|
||||
AND representative_picture_id IS NULL
|
||||
SELECT DISTINCT id,name,uppercats,global_rank
|
||||
FROM '.CATEGORIES_TABLE.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' ON id=category_id
|
||||
WHERE representative_picture_id IS NULL
|
||||
;';
|
||||
$template->assign(
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user