I have uploaded a version on a server and I get an error which I did not have on local environment.
I have this object
stdClass Object (
[type] => education
[tutor_title] => Computer skills for the workplace
[tutor_title_description] => portland college
)
and when I do this block:
if ('education' == $qualification->type)
{
echo 'yes';die();
}
else
{
echo 'no';die();
}
I always get no. I don’t know why. I have tried to do:
if ('education' === $qualification->type)if ($qualification->type == 'education')if ($qualification->type === 'education')
and same output. This is strange why is this happening?
What do you get if you do
var_dump($qualification);? Is there perhaps a space after “education” or so?