From: gerv%gerv.net <> Date: Fri, 15 Dec 2000 01:52:18 +0000 (+0000) Subject: Made deletion of graphs safer. Thanks to Joseph Heenan X-Git-Tag: bugzilla-2.12~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12f144e4c5b129b126684a21b63fe3caf9da70fa;p=thirdparty%2Fbugzilla.git Made deletion of graphs safer. Thanks to Joseph Heenan --- diff --git a/collectstats.pl b/collectstats.pl index 9d813f63ed..e2daa97f65 100755 --- a/collectstats.pl +++ b/collectstats.pl @@ -32,10 +32,11 @@ use vars @::legal_product; require "globals.pl"; # tidy up after graphing module -chdir("graphs"); -unlink <./*.gif>; -unlink <./*.png>; -chdir(".."); +if (chdir("graphs")) { + unlink <./*.gif>; + unlink <./*.png>; + chdir(".."); +} ConnectToDatabase(1); GetVersionTable();