Ignore:
Timestamp:
May 1, 2008, 3:12:34 AM (16 years ago)
Author:
rvelices
Message:
  • move #categories.date_last and nb_images to #user_cache_categories
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_options.php

    r2299 r2324  
    287287;';
    288288    $query_false = '
    289 SELECT id,name,uppercats,global_rank
    290   FROM '.CATEGORIES_TABLE.'
    291   WHERE nb_images != 0
    292     AND representative_picture_id IS NULL
     289SELECT DISTINCT id,name,uppercats,global_rank
     290  FROM '.CATEGORIES_TABLE.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' ON id=category_id
     291  WHERE representative_picture_id IS NULL
    293292;';
    294293    $template->assign(
Note: See TracChangeset for help on using the changeset viewer.