diff options
Diffstat (limited to 'admin/photos_add_direct.php')
-rw-r--r-- | admin/photos_add_direct.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/admin/photos_add_direct.php b/admin/photos_add_direct.php index 352c27aa2..10f71e082 100644 --- a/admin/photos_add_direct.php +++ b/admin/photos_add_direct.php @@ -2,7 +2,7 @@ // +-----------------------------------------------------------------------+ // | Piwigo - a PHP based photo gallery | // +-----------------------------------------------------------------------+ -// | Copyright(C) 2008-2013 Piwigo Team http://piwigo.org | +// | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | // +-----------------------------------------------------------------------+ @@ -43,12 +43,9 @@ DELETE FROM '.CADDIE_TABLE.' $inserts = array(); foreach (explode(',', $_GET['batch']) as $image_id) { - array_push( - $inserts, - array( - 'user_id' => $user['id'], - 'element_id' => $image_id, - ) + $inserts[] = array( + 'user_id' => $user['id'], + 'element_id' => $image_id, ); } mass_inserts( @@ -57,7 +54,7 @@ DELETE FROM '.CADDIE_TABLE.' $inserts ); - redirect(get_root_url().'admin.php?page=batch_manager&cat=caddie'); + redirect(get_root_url().'admin.php?page=batch_manager&filter=prefilter-caddie'); } // +-----------------------------------------------------------------------+ |