Ignore:
Timestamp:
12/31/10 17:43:59 (9 years ago)
Author:
plg
Message:

feature 2091: Batch Manager, find all orphan photos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager.php

    r8413 r8419  
    178178  } 
    179179 
     180  if ('with no album' == $_SESSION['bulk_manager_filter']['prefilter']) 
     181  { 
     182    $query = ' 
     183SELECT 
     184    id 
     185  FROM '.IMAGES_TABLE.' 
     186    LEFT JOIN '.IMAGE_CATEGORY_TABLE.' ON id = image_id 
     187  WHERE category_id is null 
     188;'; 
     189    array_push( 
     190      $filter_sets, 
     191      array_from_query($query, 'id') 
     192      ); 
     193  } 
     194 
    180195  if ('duplicates' == $_SESSION['bulk_manager_filter']['prefilter']) 
    181196  { 
Note: See TracChangeset for help on using the changeset viewer.