Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] Added [userdb load]



******    message to minivend-users from "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();
	}

-
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


Search for: Match: Format: Sort by: