Ignore:
Timestamp:
Nov 30, 2004, 9:36:20 PM (19 years ago)
Author:
plg
Message:

no PHP error if form submitted while no category selected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_options.php

    r622 r627  
    3737// print_r($_POST);
    3838// print '</pre>';
    39 if (isset($_POST['falsify']) and count($_POST['cat_true']) > 0)
     39if (isset($_POST['falsify'])
     40    and isset($_POST['cat_true'])
     41    and count($_POST['cat_true']) > 0)
    4042{
    4143  switch ($_GET['section'])
     
    8789  }
    8890}
    89 else if (isset($_POST['trueify']) and count($_POST['cat_false']) > 0)
     91else if (isset($_POST['trueify'])
     92         and isset($_POST['cat_false'])
     93         and count($_POST['cat_false']) > 0)
    9094{
    9195  switch ($_GET['section'])
Note: See TracChangeset for help on using the changeset viewer.