Changeset 1151


Ignore:
Timestamp:
Apr 12, 2006, 4:53:38 PM (18 years ago)
Author:
nikrou
Message:

bug fixed: add test on $_POSTlist
problem when clicking on validate-all or remove-all
and when the list of comments is empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/admin/comments.php

    r1072 r1151  
    4646  $to_validate = array();
    4747  $to_reject = array();
    48  
     48
    4949  if (isset($_POST['submit']))
    5050  {   
     
    6969    }
    7070  }
    71   else if (isset($_POST['validate-all']))
     71  else if (isset($_POST['validate-all']) and !empty($_POST['list']))
    7272  {
    7373    $to_validate = explode(',', $_POST['list']);
    7474  }
    75   else if (isset($_POST['reject-all']))
     75  else if (isset($_POST['reject-all']) and !empty($_POST['list']))
    7676  {
    7777    $to_reject = explode(',', $_POST['list']);
Note: See TracChangeset for help on using the changeset viewer.