[html-formfu] Can't modify non-lvalue
Tobias Henoeckl
hoeni-formfu at sisyphus.de
Tue Sep 23 07:42:10 BST 2008
Hi,
when using my form I get an error:
Caught exception in TTT::Controller::Project->edit "Can't modify
non-lvalue subroutine call at
/usr/local/lib/perl5/site_perl/5.8.8/HTML/FormFu/Element.pm line 84.
---- 8<---- SCHNIPP ------------------------------------------------
$self->model_config ||= {};
my $conf = $self->model_config;
...
---- 8<---- SCHNAPP ------------------------------------------------
Shouldn't it be rather like this?
---- 8<---- SCHNIPP ------------------------------------------------
$self->model_config;
my $conf = $self->model_config || {};
...
---- 8<---- SCHNAPP ------------------------------------------------
Or did I miss the point?
Regards,
Tobias "Hoeni" Henoeckl
More information about the HTML-FormFu
mailing list