Made deletion of graphs safer. Thanks to Joseph Heenan <joseph@picsel.com>

This commit is contained in:
gerv%gerv.net 2000-12-14 17:52:18 +00:00
parent a550f386e8
commit b56a5eb3ac

View File

@ -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();