X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9f522077cdc739cbb17564f76e31e9b7ce7ab4f1..8bca69f27bb998a9f4c49ab3c791271bfbb1b6c3:/SL/Auth.pm diff --git a/SL/Auth.pm b/SL/Auth.pm index 77ea226ae..569ec2149 100644 --- a/SL/Auth.pm +++ b/SL/Auth.pm @@ -615,7 +615,7 @@ sub save_session { my $dbh = $provided_dbh || $self->dbconnect(1); - $::lxdebug->leave_sub && return unless $dbh; + $::lxdebug->leave_sub && return unless $dbh && $session_id; $dbh->begin_work unless $provided_dbh; @@ -1117,7 +1117,7 @@ sub load_rights_for_user { my $dbh = $self->dbconnect; my ($query, $sth, $row, $rights); - $rights = { map { $rights->{$_} = 0 } all_rights() }; + $rights = { map { $rights->{$_} => 0 } all_rights() }; $query = qq|SELECT gr."right", gr.granted