diff options
author | bbaetz%acm.org <> | 2003-02-09 08:26:47 +0100 |
---|---|---|
committer | bbaetz%acm.org <> | 2003-02-09 08:26:47 +0100 |
commit | 731b5775ed45d22398a6c7969bd62922853c3b4e (patch) | |
tree | dcf66802734c54d1493e5ec9e498e1dc72ddfbf8 /CGI.pl | |
parent | 3c5a0ebc7cbaa7817b759858a08e32ad32a64dc7 (diff) | |
download | bugzilla-731b5775ed45d22398a6c7969bd62922853c3b4e.tar.gz bugzilla-731b5775ed45d22398a6c7969bd62922853c3b4e.tar.xz |
Bug 192393 - $::dbwritesallowed never set
r, a=justdave
Diffstat (limited to 'CGI.pl')
-rw-r--r-- | CGI.pl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -611,7 +611,7 @@ Content-type: text/html # This seems like as good as time as any to get rid of old # crufty junk in the logincookies table. Get rid of any entry # that hasn't been used in a month. - if ($::dbwritesallowed) { + if (Bugzilla->dbwritesallowed) { SendSQL("DELETE FROM logincookies " . "WHERE TO_DAYS(NOW()) - TO_DAYS(lastused) > 30"); } @@ -620,7 +620,7 @@ Content-type: text/html } # Update the timestamp on our logincookie, so it'll keep on working. - if ($::dbwritesallowed) { + if (Bugzilla->dbwritesallowed) { SendSQL("UPDATE logincookies SET lastused = null " . "WHERE cookie = $::COOKIE{'Bugzilla_logincookie'}"); } |