On line 391 there is a += operand

$settings += content_profile_settings_info();

The same operand is used in content_profile_registration.module on line 16 and 25.

I changed this operands to .= and the module "works".

But now I'm not able to change the default display to anythink but the default ('Display the content teaser').
See also:http://drupal.org/node/340937 for this issue

Comments

mdroste’s picture

No one else?
I cannot believe that I'm the only one with this error. Come on guys I've got the same source code as you. Or do you have a PHP Version which knows the += operand ;-)

fago’s picture

Status: Active » Fixed

All supported php versions know this operand.. ;) Try disabling + uninstalling the module - after re-enabling it should work. If not please reopen.

mdroste’s picture

You are joking? Please ...
I've got PHP errors (unsupported operand)

fago’s picture

I'm not joking.

Try disabling + uninstalling the module - after re-enabling it should work. If not please reopen.

mdroste’s picture

ok. I will try this tomorrow. But please, could you explain why it would work with += ?

fago’s picture

try
print_r(array('one' => 'foo',) + array('two' => 'bar'));

mdroste’s picture

OK, now it works and - blame on me - PHP knows the plus equals operator. But why I've got the "unsupported operand" error before?

fago’s picture

This was probably the result of an elder bug.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.