summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authorchristopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46>2006-09-01 12:44:19 +0000
committerchristopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46>2006-09-01 12:44:19 +0000
commit9a1aed21d09df56265c4ccba180d0d7f96dac190 (patch)
treea3af6e4cdb0900ebce6ce59f99015de1f1c3efb9 /LedgerSMB
parent245b7d5d78f883e2bec6bca0d44a7becede168e3 (diff)
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
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Session.pm8
1 files changed, 7 insertions, 1 deletions
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;