mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 03:13:40 +01:00
small bugfix for handling of unexpected info type not being an array
This commit is contained in:
parent
a045eaaff5
commit
c9348737b4
@ -940,10 +940,13 @@ class uiinfolog
|
|||||||
if ($content['js']) $content['js'] = '<script>'.$content['js'].'</script>';
|
if ($content['js']) $content['js'] = '<script>'.$content['js'].'</script>';
|
||||||
}
|
}
|
||||||
// on a type-change, set the status to the default status of that type, if the actual status is not supported by the new type
|
// on a type-change, set the status to the default status of that type, if the actual status is not supported by the new type
|
||||||
if (!in_array($content['info_status'],$this->bo->status[$content['info_type']]))
|
if (is_array($this->bo->status[$content['info_type']]))
|
||||||
{
|
{
|
||||||
$content['info_status'] = $this->bo->status['defaults'][$content['info_type']];
|
if (!in_array($content['info_status'],$this->bo->status[$content['info_type']]))
|
||||||
if ($content['info_status'] != 'done') $content['info_datecompleted'] = '';
|
{
|
||||||
|
$content['info_status'] = $this->bo->status['defaults'][$content['info_type']];
|
||||||
|
if ($content['info_status'] != 'done') $content['info_datecompleted'] = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user