diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-06-26 19:02:03 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-06-26 19:02:03 +0000 |
commit | 78d2ecf7d8ee85d943f26a0df35a7c40e3ecb913 (patch) | |
tree | 145857243ed85adac2e8c2b4d43203c86db8a0a4 /LedgerSMB/Session | |
parent | 8dd3af0e1497f938bee47da502b0e697f52eb198 (diff) |
Fixing ordering issue for LedgerSMB.pm
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1331 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/Session')
-rwxr-xr-x | LedgerSMB/Session/DB.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/LedgerSMB/Session/DB.pm b/LedgerSMB/Session/DB.pm index 592d0922..849b4ddf 100755 --- a/LedgerSMB/Session/DB.pm +++ b/LedgerSMB/Session/DB.pm @@ -43,7 +43,6 @@ sub session_check { "SELECT u.username, s.transaction_id FROM session as s, users as u WHERE s.session_id = ? - AND s.token = ? AND s.users_id = u.id AND s.last_used > now() - ?::interval" ); @@ -73,7 +72,7 @@ sub session_check { $timeout = "$myconfig{timeout} seconds"; } - $checkQuery->execute( $sessionID, $token, $timeout ) + $checkQuery->execute( $sessionID, $timeout ) || $form->dberror( __FILE__ . ':' . __LINE__ . ': Looking for session: ' ); my $sessionValid = $checkQuery->rows; |