aboutsummaryrefslogtreecommitdiffstats
path: root/admin/comments.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2006-04-12 15:02:22 +0000
committernikrou <nikrou@piwigo.org>2006-04-12 15:02:22 +0000
commit57e894ca8d8379c830b607cdc7cffc26cfe7cfaf (patch)
tree043908288e21c382f010fd59e10e214e1340fdb7 /admin/comments.php
parent487d0565b094b28a0b1bd17f49f19735be1609bb (diff)
bug fixed: add test on $_POST['list']
problem when clicking on validate-all or remove-all and when the list of comments is empty merge -r1150:1151 from branch-1_6 into trunk git-svn-id: http://piwigo.org/svn/trunk@1154 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/comments.php')
-rw-r--r--admin/comments.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/admin/comments.php b/admin/comments.php
index a47da72a1..3d6d83268 100644
--- a/admin/comments.php
+++ b/admin/comments.php
@@ -45,7 +45,7 @@ if (isset($_POST))
{
$to_validate = array();
$to_reject = array();
-
+
if (isset($_POST['submit']))
{
foreach (explode(',', $_POST['list']) as $comment_id)
@@ -68,11 +68,11 @@ if (isset($_POST))
}
}
}
- else if (isset($_POST['validate-all']))
+ else if (isset($_POST['validate-all']) and !empty($_POST['list']))
{
$to_validate = explode(',', $_POST['list']);
}
- else if (isset($_POST['reject-all']))
+ else if (isset($_POST['reject-all']) and !empty($_POST['list']))
{
$to_reject = explode(',', $_POST['list']);
}