Ignore:
Timestamp:
Mar 17, 2013, 8:32:17 PM (11 years ago)
Author:
mistic100
Message:

move update time from categories_table to category_filters_table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/SmartAlbums/include/functions.inc.php

    r19722 r21658  
    5252 
    5353  $query = '
    54 UPDATE '.CATEGORIES_TABLE.'
    55   SET smart_update = NOW()
    56   WHERE id = '.$cat_id.'
     54UPDATE '.CATEGORY_FILTERS_TABLE.'
     55  SET updated = NOW()
     56  WHERE category_id = '.$cat_id.'
    5757;';
    5858  pwg_query($query);
     
    689689    INNER JOIN '.CATEGORY_FILTERS_TABLE.' AS cf
    690690    ON c.id = cf.category_id
    691   WHERE smart_update < DATE_SUB(NOW(), INTERVAL '.$conf['SmartAlbums']['update_timeout'].' DAY)
     691  WHERE updated < DATE_SUB(NOW(), INTERVAL '.$conf['SmartAlbums']['update_timeout'].' DAY)
    692692;';
    693693 
Note: See TracChangeset for help on using the changeset viewer.