mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-61899 tool_dataprivacy: Fix undefined property error
This commit is contained in:
parent
087353f909
commit
c3002d2c3f
@ -114,7 +114,7 @@ class purpose extends persistent {
|
||||
if (is_array($data->lawfulbases)) {
|
||||
$data->lawfulbases = implode(',', $data->lawfulbases);
|
||||
}
|
||||
if (is_array($data->sensitivedatareasons)) {
|
||||
if (!empty($data->sensitivedatareasons) && is_array($data->sensitivedatareasons)) {
|
||||
$data->sensitivedatareasons = implode(',', $data->sensitivedatareasons);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user