diff options
author | rvelices <rv-github@modusoptimus.com> | 2011-01-18 20:57:36 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2011-01-18 20:57:36 +0000 |
commit | 90911d747fd2cc706bfd6ec44a1c5aa4c0455eae (patch) | |
tree | 25e33d48f0bf8ce035900598ce2a88482caef60f /admin/batch_manager_global.php | |
parent | 7889e86b9b772e4aaf8e5ebcf97c5b8fff5be9d1 (diff) |
- batch manager was not calling invalidate_user_cache
- batch manager can delete photos added by ftp
- call sync_users on admin page less often (too many sql queries)
git-svn-id: http://piwigo.org/svn/trunk@8756 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/batch_manager_global.php')
-rw-r--r-- | admin/batch_manager_global.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/admin/batch_manager_global.php b/admin/batch_manager_global.php index a95947cf7..6eb7150ac 100644 --- a/admin/batch_manager_global.php +++ b/admin/batch_manager_global.php @@ -412,14 +412,15 @@ if (count($page['cat_elements_id']) > 0) { $query = ' SELECT - COUNT(*) + id FROM '.IMAGES_TABLE.' WHERE id IN ('.implode(',', $page['cat_elements_id']).') - AND storage_category_id IS NULL + AND file NOT LIKE \'http%\' + LIMIT 1 ;'; - list($counter) = pwg_db_fetch_row(pwg_query($query)); + ; - if ($counter > 0) + if ( pwg_db_fetch_row(pwg_query($query)) ) { $template->assign('show_delete_form', true); } |