* [task#144636] unset useless data.
This commit is contained in:
@@ -36,8 +36,11 @@ class count_of_bug_in_pri_in_execution extends baseCalc
|
||||
{
|
||||
foreach($this->result as $pri => $bugs)
|
||||
{
|
||||
if(!is_array($bugs)) continue;
|
||||
|
||||
if(!is_array($bugs))
|
||||
{
|
||||
unset($this->result[$pri]);
|
||||
continue;
|
||||
}
|
||||
$this->result[$pri] = count($bugs);
|
||||
}
|
||||
|
||||
|
||||
@@ -36,8 +36,11 @@ class count_of_bug_in_resolution_in_execution extends baseCalc
|
||||
{
|
||||
foreach($this->result as $resolution => $bugs)
|
||||
{
|
||||
if(!is_array($bugs)) continue;
|
||||
|
||||
if(!is_array($bugs))
|
||||
{
|
||||
unset($this->result[$resolution]);
|
||||
continue;
|
||||
}
|
||||
$this->result[$resolution] = count($bugs);
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,11 @@ class count_of_bug_in_severity_in_execution extends baseCalc
|
||||
{
|
||||
foreach($this->result as $severity => $bugs)
|
||||
{
|
||||
if(!is_array($bugs)) continue;
|
||||
if(!is_array($bugs))
|
||||
{
|
||||
unset($this->result[$severity]);
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->result[$severity] = count($bugs);
|
||||
}
|
||||
|
||||
@@ -36,7 +36,11 @@ class count_of_bug_in_type_in_execution extends baseCalc
|
||||
{
|
||||
foreach($this->result as $type => $bugs)
|
||||
{
|
||||
if(!is_array($bugs)) continue;
|
||||
if(!is_array($bugs))
|
||||
{
|
||||
unset($this->result[$type]);
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->result[$type] = count($bugs);
|
||||
}
|
||||
|
||||
@@ -36,8 +36,11 @@ class count_of_case_in_status_in_execution extends baseCalc
|
||||
{
|
||||
foreach($this->result as $status => $cases)
|
||||
{
|
||||
if(!is_array($cases)) continue;
|
||||
|
||||
if(!is_array($cases))
|
||||
{
|
||||
unset($this->result[$status]);
|
||||
continue;
|
||||
}
|
||||
$this->result[$status] = count($cases);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user