[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [value xxx] results in empty string if set to 0
Quoting Stefan Hornburg (racke@ecoservice.de):
>
> Hello, MiniVendors !
>
> The value tag evaluates to an empty string if set to 0. Is this
> behaviour documented ?
>
What a delicate way to make a bug report. 8-)
I am deep into MiniVend 4 now, so I probably won't fix this one
as it has existed for almost 2 years without repercussions.
The relevant change would be:
< $::Values->{$var} = $set if defined $set;
< $value = $::Values->{$var} || '';
> $::Values->{$var} = $set if defined $set;
> $value = defined $::Values->{$var}
> ? $::Values->{$var}
> : '';
It had already been fixed in 4.0 when I added the filtering stuff.
--
Mike Heins http://www.minivend.com/ ___
Internet Robotics |_ _|____
131 Willow Lane, Floor 2 | || _ \
It's a little-known fact Oxford, OH 45056 | || |_) |
that the Y1K problem caused <mikeh@minivend.com> |___| _ <
the Dark Ages. -- unknown 513.523.7621 FAX 7501 |_| \_\