aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-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']);
}