diff --git a/modules/redcap/php/client/models/redcapdictionaryrecord.class.inc b/modules/redcap/php/client/models/redcapdictionaryrecord.class.inc index 2f7bfb2bdfb..e3062f3899f 100644 --- a/modules/redcap/php/client/models/redcapdictionaryrecord.class.inc +++ b/modules/redcap/php/client/models/redcapdictionaryrecord.class.inc @@ -302,6 +302,10 @@ class RedcapDictionaryRecord private function _optionsToLINST() : string { $dictionary = $this->select_choices; + if ($dictionary === null) { + return ''; + } + $dictionary = str_replace(' | | ', ' | ', $dictionary); if (str_starts_with($dictionary, '| ')) { $dictionary = substr($dictionary, 2);