mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
avoid Warning when importing not yet created infolog-types
This commit is contained in:
parent
0d432dcaab
commit
2593932bc1
@ -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