[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Added [userdb load]
****** message to minivend-users from Mike Heins <mikeh@minivend.com> ******
Quoting Christopher Thompson (ct@arborinternet.com):
>
> I needed to reload the current users userdb values because I was using the
> same var names in a form (I know, you say "why are you doing that!").
> Anyway, I added a load option to the userdb tag and thought I'd post it.
> The code below goes in mvend/lib/Vend/UserDB.pm in the sub userdb after
> the elsif for save. Thought is would be handy.
>
> elsif($function eq 'load') {
> $user = new Vend::UserDB %options;
> unless (defined $user) {
> $Vend::Session->{failure} = "Unable to access user database.";
> return undef;
> }
> $status = $user->get_values();
> }
>
Good suggestion! It is/will be in 4.04. Unedited, which is very, very,
rare in the MV code. Credits updated -- thanks Christopher! 8-)
--
Internet Robotics, 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.7621 fax 7501 <mikeh@minivend.com>
I don't buy from direct telephone or email marketers. This makes it
hard for me to find a phone company. ;>
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list