mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
avoid Warning when importing not yet created infolog-types
This commit is contained in:
parent
adaeabe592
commit
6e0e86ced2
@ -760,7 +760,8 @@ class infolog_bo
|
||||
// Make sure status is still valid if the type changes
|
||||
if($old['info_type'] != $values['info_type'] && $values['info_status'])
|
||||
{
|
||||
if(!in_array($values['info_status'], array_keys($this->status[$values['info_type']])))
|
||||
if (isset($this->status[$values['info_type']]) &&
|
||||
!in_array($values['info_status'], array_keys($this->status[$values['info_type']])))
|
||||
{
|
||||
$values['info_status'] = $this->status['defaults'][$values['info_type']];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user