no PHP error if form submitted while no category selected
git-svn-id: http://piwigo.org/svn/trunk@627 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
5379225172
commit
beaef0f1f2
1 changed files with 6 additions and 2 deletions
|
|
@ -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'])
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue