From beaef0f1f2371770d3f571f0a414f048a34e5cf7 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 30 Nov 2004 20:36:20 +0000 Subject: no PHP error if form submitted while no category selected git-svn-id: http://piwigo.org/svn/trunk@627 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/cat_options.php | 8 ++++++-- 1 file 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 '
';
 // print_r($_POST);
 // print '
'; -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']) { -- cgit v1.2.3