Jump to content

Can't use method return value in write context


Xtremer360

Recommended Posts

Any thoughts as to why I'm getting an error for this line of code?

 

if (isset($this->input->post('bcc[]')))

 

Error reads: Fatal error: Can't use method return value in write context

 

If someone knows can they explain it to me so I understand it please.

You can only use isset() on a variable, but your trying to use it on the return from a method.  The whole thing doesn't make a whole lot of sense though.

 

if ($this->input->post('bcc[]')){

 

is probably all you need.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.