Ignore:
Timestamp:
Jun 12, 2011, 7:54:34 PM (13 years ago)
Author:
mistic100
Message:

private items are not displayed in SmartAlbums (according to user permissions)

File:
1 moved

Legend:

Unmodified
Added
Removed
  • extensions/SmartAlbums/include/init_cat_modify.php

    r11333 r11334  
    77function smart_cat_modify()
    88{
    9   global $template;
     9  global $template, $page;
    1010  include_once(SMART_PATH.'include/functions.inc.php');
    1111 
     
    3131      pwg_query('DELETE FROM '.IMAGE_CATEGORY_TABLE.' WHERE category_id = '.$cat_id.' AND smart = true;');
    3232      pwg_query('DELETE FROM '.CATEGORY_FILTERS_TABLE.' WHERE category_id = '.$cat_id.';');
     33      set_random_representant(array($cat_id));
    3334    }
    3435    /* no filter selected */
Note: See TracChangeset for help on using the changeset viewer.