From 731b5775ed45d22398a6c7969bd62922853c3b4e Mon Sep 17 00:00:00 2001 From: "bbaetz%acm.org" <> Date: Sun, 9 Feb 2003 07:26:47 +0000 Subject: Bug 192393 - $::dbwritesallowed never set r, a=justdave --- CGI.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CGI.pl') diff --git a/CGI.pl b/CGI.pl index 61797ac44..7ded11ef2 100644 --- a/CGI.pl +++ b/CGI.pl @@ -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'}"); } -- cgit v1.2.3-24-g4f1b