aboutsummaryrefslogtreecommitdiffstats
path: root/admin/batch_manager_global.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/batch_manager_global.php9
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);
}