Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 348db00

Browse files
author
Michael Grauer
committed
BUG: refs #0380. Added better checking if empty tempDir came back from settings.
1 parent a5ce6e5 commit 348db00

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/controllers/components/UtilityComponent.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,10 @@ public static function getTempDirectory($subdir = "misc")
394394
{
395395
// if the setting model hasn't been installed, or there is no
396396
// value in the settings table for this, provide a default
397+
$tempDirectory = null;
398+
}
399+
if(!isset($tempDirectory) || empty($tempDirectory))
400+
{
397401
$tempDirectory = BASE_PATH.'/tmp';
398402
}
399403
return $tempDirectory .'/'.$subdir.'/';

0 commit comments

Comments
 (0)