Replace new getValueFromPost with original. Checked that

Posts have all values (username, dateSubmitted, dateUpdated) defined.
This commit is contained in:
Colin Kuskie 2005-12-10 21:26:41 +00:00
parent 53a1475c4b
commit fadb77822e
3 changed files with 38 additions and 12 deletions

View file

@ -183,6 +183,20 @@ sub displayValue {
#-------------------------------------------------------------------
=head2 getValueFromPost ( )
Returns an array or a carriage return ("\n") separated scalar depending upon whether you're returning the values into an array or a scalar.
=cut
sub getValueFromPost {
my $self = shift;
my @data = $session{req}->param($self->{name});
return wantarray ? @data : join("\n",@data);
}
#-------------------------------------------------------------------
=head2 getValues ( )
Safely handle returning values whether the stored data is scalar or an array