Removing some unuseful warns.

Adding an error management for memberentry : Branch.
This commit is contained in:
hdl 2005-07-29 16:14:37 +00:00
parent 8a87b560ac
commit 0960f3245c
2 changed files with 3 additions and 4 deletions

View file

@ -314,7 +314,6 @@ sub checkauth {
# voluntary logout the user
$dbh->do("DELETE FROM sessions WHERE sessionID=?", undef, $sessionID);
C4::Context->_unset_userenv($sessionID);
warn "DEL USERENV0";
$sessionID = undef;
$userid = undef;
open L, ">>/tmp/sessionlog";
@ -328,7 +327,6 @@ sub checkauth {
$info{'timed_out'} = 1;
$dbh->do("DELETE FROM sessions WHERE sessionID=?", undef, $sessionID);
C4::Context->_unset_userenv($sessionID);
warn "DEL USERENV1";
$userid = undef;
$sessionID = undef;
open L, ">>/tmp/sessionlog";
@ -342,7 +340,6 @@ sub checkauth {
$info{'different_ip'} = 1;
$dbh->do("DELETE FROM sessions WHERE sessionID=?", undef, $sessionID);
C4::Context->_unset_userenv($sessionID);
warn "DEL USERENV2";
$sessionID = undef;
$userid = undef;
open L, ">>/tmp/sessionlog";
@ -438,7 +435,6 @@ sub checkauth {
-expires => '');
}
if ($envcookie){
warn "envcookie set";
return ($userid, [$cookie,$envcookie], $sessionID, $flags)
} else {
return ($userid, $cookie, $sessionID, $flags);

View file

@ -36,6 +36,9 @@
<!-- TMPL_IF NAME="ERROR_city" -->
Postal city<br>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ERROR_branch" -->
Branch : member should be of the same branch as you<br>
<!-- /TMPL_IF -->
</div>
<!-- /TMPL_IF -->
<form action="/cgi-bin/koha/members/memberentry.pl" method="post">