Skip to content
Permalink
Browse files

fix PHP 7.4.1 warnings

  • Loading branch information
fmancardi committed Dec 28, 2019
1 parent b75ec51 commit 7ea647c2d3c4fc6f2f0287e4a08df2f1144256a2
Showing with 15 additions and 14 deletions.
  1. +15 −14 lib/functions/tlTestCaseFilterControl.class.php
@@ -6,7 +6,7 @@
* @filesource tlTestCaseFilterControl.class.php
* @package TestLink
* @author Andreas Simon
* @copyright 2006-2016, TestLink community
* @copyright 2006-2019, TestLink community
* @link http://testlink.sourceforge.net/
*
*
@@ -1561,8 +1561,8 @@ private function init_filter_keywords()
$type_selection = $this->args->{$type};

// are there any keywords?
if (!is_null($keywords) && count($keywords))
{
$atLeastOneKW = (!is_null($keywords) && count($keywords));
if ($atLeastOneKW) {
$this->filters[$key] = array();

if (!$selection || !$type_selection || $this->args->reset_filters)
@@ -1589,18 +1589,19 @@ private function init_filter_keywords()
$special['filter_mode'];
$this->filters[$key][$type]['selected'] = $type_selection;
}

// set the active value to filter
// delete keyword filter if "any" (0) is part of the selection - regardless of filter mode
if (is_array($this->filters[$key]['selected']) && in_array(0, $this->filters[$key]['selected']))
{
$this->active_filters[$key] = null;
}
else
{
$this->active_filters[$key] = $this->filters[$key]['selected'];

if ($atLeastOneKW) {
// set the active value to filter
// delete keyword filter if "any" (0) is part of the selection - regardless of filter mode
if (is_array($this->filters[$key]['selected']) && in_array(0, $this->filters[$key]['selected'])) {
$this->active_filters[$key] = null;
} else {
$this->active_filters[$key] = $this->filters[$key]['selected'];
}
$this->active_filters[$type] = $selection ? $type_selection : null;
} else {
$this->active_filters[$key] = null;
}
$this->active_filters[$type] = $selection ? $type_selection : null;
}


0 comments on commit 7ea647c

Please sign in to comment.
You can’t perform that action at this time.