From 01f80a14158fb9a7fcd2105409478a4c1dbb6c35 Mon Sep 17 00:00:00 2001 From: nikrou Date: Fri, 21 Apr 2006 21:08:28 +0000 Subject: bug fixed: add test on $_POST['list'] problem when clicking on validate-all or remove-all and when the list of waiting is empty svn merge -r1234:1235 from branch-1_6 into trunk git-svn-id: http://piwigo.org/svn/trunk@1245 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/waiting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'admin/waiting.php') diff --git a/admin/waiting.php b/admin/waiting.php index 3408538e2..af4cb607f 100644 --- a/admin/waiting.php +++ b/admin/waiting.php @@ -65,11 +65,11 @@ if (isset($_POST)) } } } - else if (isset($_POST['validate-all'])) + elseif (isset($_POST['validate-all']) and !empty($_POST['list'])) { $to_validate = explode(',', $_POST['list']); } - else if (isset($_POST['reject-all'])) + elseif (isset($_POST['reject-all']) and !empty($_POST['list'])) { $to_reject = explode(',', $_POST['list']); } -- cgit v1.2.3