mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-05 01:12:29 +02:00
- 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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user