-2

I have a problem. I should receive attachment parameters, but with a point it doesn't work:

if (isset($doc->doc->_attachments->ico.gif)) //Error 500

How should it be done?

Hobo
  • 7,536
  • 5
  • 40
  • 50

1 Answers1

0

I don't have PHP here to check, but if the problem is with the ".", perhaps the syntax mentioned in the answer to this question will help, ie

<?php
if (isset($doc->doc->_attachments->{'ico.gif'}))
Community
  • 1
  • 1
Hobo
  • 7,536
  • 5
  • 40
  • 50