mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
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
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user