Skip to content
Snippets Groups Projects
Commit 982f534f authored by Jared Hancock's avatar Jared Hancock
Browse files

api: Fix warning for file attachments

parent c57c22a5
No related branches found
No related tags found
No related merge requests found
...@@ -358,7 +358,7 @@ class ApiXmlDataParser extends XmlDataParser { ...@@ -358,7 +358,7 @@ class ApiXmlDataParser extends XmlDataParser {
$value = new TextThreadEntryBody($value['body']); $value = new TextThreadEntryBody($value['body']);
} else if ($key == "attachments") { } else if ($key == "attachments") {
if(!isset($value['file'][':text'])) if(isset($value['file']) && !isset($value['file'][':text']))
$value = $value['file']; $value = $value['file'];
if($value && is_array($value)) { if($value && is_array($value)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment