Changeset 1154 for trunk/admin


Ignore:
Timestamp:
Apr 12, 2006, 5:02:22 PM (19 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
merge -r1150:1151 from branch-1_6 into trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/comments.php

    r1072 r1154  
    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.