Merge pull request #373 from m-bene/filterTermsUndefined
Fix 'Undefined index: filter' php warnings for filter view when
This commit is contained in:
commit
221f9afa6c
|
@ -160,7 +160,7 @@ xhtmlHeaders(__FILE__, $SLANG['EventFilter'] );
|
|||
<table id="fieldsTable" class="filterTable" cellspacing="0">
|
||||
<tbody>
|
||||
<?php
|
||||
for ( $i = 0; $i < count($_REQUEST['filter']['terms']); $i++ )
|
||||
for ( $i = 0; isset($_REQUEST['filter']) && $i < count($_REQUEST['filter']['terms']); $i++ )
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
var deleteSavedFilterString = "<?= $SLANG['DeleteSavedFilter'] ?>";
|
||||
|
||||
function validateForm( form )
|
||||
{
|
||||
<?php
|
||||
if ( count($_REQUEST['filter']['terms']) > 2 )
|
||||
if ( isset ($_REQUEST['filter']) && count($_REQUEST['filter']['terms']) > 2 )
|
||||
{
|
||||
?>
|
||||
var bracket_count = 0;
|
||||
|
@ -27,7 +26,7 @@ for ( $i = 0; $i < count($_REQUEST['filter']['terms']); $i++ )
|
|||
}
|
||||
?>
|
||||
<?php
|
||||
for ( $i = 0; $i < count($_REQUEST['filter']['terms']); $i++ )
|
||||
for ( $i = 0; isset($_REQUEST['filter']) && $i < count($_REQUEST['filter']['terms']); $i++ )
|
||||
{
|
||||
?>
|
||||
var val = form.elements['filter[terms][<?= $i ?>][val]'];
|
||||
|
|
|
@ -160,7 +160,7 @@ xhtmlHeaders(__FILE__, $SLANG['EventFilter'] );
|
|||
<table id="fieldsTable" class="filterTable" cellspacing="0">
|
||||
<tbody>
|
||||
<?php
|
||||
for ( $i = 0; $i < count($_REQUEST['filter']['terms']); $i++ )
|
||||
for ( $i = 0; isset($_REQUEST['filter']) && $i < count($_REQUEST['filter']['terms']); $i++ )
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
|
|
|
@ -3,7 +3,7 @@ var deleteSavedFilterString = "<?= $SLANG['DeleteSavedFilter'] ?>";
|
|||
function validateForm( form )
|
||||
{
|
||||
<?php
|
||||
if ( count($_REQUEST['filter']['terms']) > 2 )
|
||||
if ( isset ($_REQUEST['filter']) && count($_REQUEST['filter']['terms']) > 2 )
|
||||
{
|
||||
?>
|
||||
var bracket_count = 0;
|
||||
|
@ -27,7 +27,7 @@ for ( $i = 0; $i < count($_REQUEST['filter']['terms']); $i++ )
|
|||
}
|
||||
?>
|
||||
<?php
|
||||
for ( $i = 0; $i < count($_REQUEST['filter']['terms']); $i++ )
|
||||
for ( $i = 0; isset($_REQUEST['filter']) && $i < count($_REQUEST['filter']['terms']); $i++ )
|
||||
{
|
||||
?>
|
||||
var val = form.elements['filter[terms][<?= $i ?>][val]'];
|
||||
|
|
Loading…
Reference in New Issue