diff options
Diffstat (limited to 'inc/configmodule/customodule.inc.php')
-rw-r--r-- | inc/configmodule/customodule.inc.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/inc/configmodule/customodule.inc.php b/inc/configmodule/customodule.inc.php index 89f63549..31796e9c 100644 --- a/inc/configmodule/customodule.inc.php +++ b/inc/configmodule/customodule.inc.php @@ -19,9 +19,7 @@ class ConfigModule_CustomModule extends ConfigModule protected function generateInternal($tgz, $parent) { if (!$this->validateConfig()) { - if ($this->archive() !== false && file_exists($this->archive())) - return true; // No new temp file given, old archive still exists, pretend it worked... - return false; + return $this->archive() !== false && file_exists($this->archive()); // No new temp file given, old archive still exists, pretend it worked... } $task = Taskmanager::submit('MoveFile', array( 'source' => $this->tmpFile, |