forked from extern/egroupware
fix PHP Warning with non-stock InfoLog types
This commit is contained in:
parent
d2368711f9
commit
fa9aa58fb8
@ -818,8 +818,8 @@ class infolog_bo
|
|||||||
{
|
{
|
||||||
$values['info_percent'] = 0;
|
$values['info_percent'] = 0;
|
||||||
}
|
}
|
||||||
else if (
|
else if (($values['info_status'] != 'archive' && $values['info_status'] != 'cancelled' &&
|
||||||
($values['info_status'] != 'archive' && $values['info_status'] != 'cancelled' && in_array($values['info_status'], $this->stock_status[$values['info_type']])) &&
|
isset($this->stock_status[$values['info_type']]) && in_array($values['info_status'], $this->stock_status[$values['info_type']])) &&
|
||||||
((int)$values['info_percent'] == 100 || $values['info_percent'] == 0))
|
((int)$values['info_percent'] == 100 || $values['info_percent'] == 0))
|
||||||
{
|
{
|
||||||
// We change percent to match status, not status to match percent
|
// We change percent to match status, not status to match percent
|
||||||
|
Loading…
Reference in New Issue
Block a user