Jump to content

Module Can't Use Function Return Value In Write Context


Recommended Posts

I am developing a custom module in prestashop. In that I have taken value inside a function like this

$fname = !empty(Tools::getValue('fname')) ? Tools::getValue('fname') : ' ';

but its showing error like this

Fatal error: Can't use function return value in write context

So can someone tell me why the error is here? How to solve this issue?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...