From 9a1aed21d09df56265c4ccba180d0d7f96dac190 Mon Sep 17 00:00:00 2001 From: christopherm Date: Fri, 1 Sep 2006 12:44:19 +0000 Subject: Adding disclaimer to session_destroy function, it won't likely be useable until a data structure change git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@5 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Session.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'LedgerSMB') diff --git a/LedgerSMB/Session.pm b/LedgerSMB/Session.pm index eb3a1208..d287d199 100755 --- a/LedgerSMB/Session.pm +++ b/LedgerSMB/Session.pm @@ -124,7 +124,13 @@ sub session_create { } sub session_destroy { - my ($form) = @_; + + # Under the current architecture, this function is a bit problematic + # %myconfig is often not defined when this function needs to be called. + # which means that the db connection parameters are not available. + # moving user prefs and the session table into a central db will solve this issue + + my ($form, %myconfig) = @_; my $login = $form->{login}; $login =~ s/[^a-zA-Z0-9@.-]//g; -- cgit v1.2.3