diff options
author | plegall <plg@piwigo.org> | 2004-11-30 20:36:20 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2004-11-30 20:36:20 +0000 |
commit | beaef0f1f2371770d3f571f0a414f048a34e5cf7 (patch) | |
tree | eb21c6ff04764a98afb1218e551900b0838bbaa2 | |
parent | 53792251720df17d76924609d427f284495e8f04 (diff) |
no PHP error if form submitted while no category selected
git-svn-id: http://piwigo.org/svn/trunk@627 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/cat_options.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/admin/cat_options.php b/admin/cat_options.php index 21eb13434..29e583150 100644 --- a/admin/cat_options.php +++ b/admin/cat_options.php @@ -36,7 +36,9 @@ include_once(PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php'); // print '<pre>'; // print_r($_POST); // print '</pre>'; -if (isset($_POST['falsify']) and count($_POST['cat_true']) > 0) +if (isset($_POST['falsify']) + and isset($_POST['cat_true']) + and count($_POST['cat_true']) > 0) { switch ($_GET['section']) { @@ -86,7 +88,9 @@ UPDATE '.CATEGORIES_TABLE.' } } } -else if (isset($_POST['trueify']) and count($_POST['cat_false']) > 0) +else if (isset($_POST['trueify']) + and isset($_POST['cat_false']) + and count($_POST['cat_false']) > 0) { switch ($_GET['section']) { |