From a387525c08ed71b567e4e2aa02e3d40d82963603 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 30 Mar 2011 21:22:47 +0000 Subject: bug fixed: makes really sure there is a defined category id before redirection on photo deletion git-svn-id: http://piwigo.org/svn/trunk@9943 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/picture_modify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin/picture_modify.php') diff --git a/admin/picture_modify.php b/admin/picture_modify.php index 5c1d1186b..333bf3e88 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -52,7 +52,7 @@ if (isset($_GET['delete'])) // 2. else use the first reachable linked category // 3. redirect to gallery root - if (isset($_GET['cat_id'])) + if (isset($_GET['cat_id']) and !empty($_GET['cat_id'])) { redirect( make_index_url( -- cgit v1.2.3