Commit 12f144e4 authored by gerv%gerv.net's avatar gerv%gerv.net

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

parent a8df8cfd
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment