diff --git a/src/PhpWord/Settings.php b/src/PhpWord/Settings.php index 144b0fc5..6c28f737 100644 --- a/src/PhpWord/Settings.php +++ b/src/PhpWord/Settings.php @@ -305,12 +305,11 @@ class Settings */ public static function getTempDir() { - $tempDir = sys_get_temp_dir(); - if (!empty(self::$tempDir)) { $tempDir = self::$tempDir; + } else { + $tempDir = sys_get_temp_dir(); } - return $tempDir; }