Really clear custom temp dir if asked

This commit is contained in:
Jamie Cameron
2007-10-02 17:57:35 +00:00
parent b76fbc2541
commit 03354f042d

View File

@@ -14,7 +14,7 @@ if (!$gconfig{'tempdelete_days'}) {
print "Temp file clearing is disabled\n";
exit(0);
}
if ($gconfig{'tempdir'}) {
if ($gconfig{'tempdir'} && !$gconfig{'tempdirdelete'}) {
print "Temp file clearing is not done for the custom directory $gconfig{'tempdir'}\n";
exit(0);
}