diff options
author | gerv%gerv.net <> | 2000-12-15 02:52:18 +0100 |
---|---|---|
committer | gerv%gerv.net <> | 2000-12-15 02:52:18 +0100 |
commit | 12f144e4c5b129b126684a21b63fe3caf9da70fa (patch) | |
tree | a758086750c1539772fc63fad0209e95fdeaa6b4 | |
parent | a8df8cfd43eb8a2d2cfad07711b7d2e43ce875e1 (diff) | |
download | bugzilla-12f144e4c5b129b126684a21b63fe3caf9da70fa.tar.gz bugzilla-12f144e4c5b129b126684a21b63fe3caf9da70fa.tar.xz |
Made deletion of graphs safer. Thanks to Joseph Heenan <joseph@picsel.com>
-rwxr-xr-x | collectstats.pl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/collectstats.pl b/collectstats.pl index 9d813f63e..e2daa97f6 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(); |