added safeguard

This commit is contained in:
Chris
2018-08-27 23:25:04 +02:00
parent 823f7e60d8
commit a75b2e3f62

View File

@@ -522,7 +522,7 @@ class PictshareModel extends Model
if(defined('ALT_FOLDER') && ALT_FOLDER)
{
$altname=ALT_FOLDER.DS.$hash;
if(!file_exists($altname))
if(!file_exists($altname) && is_dir(ALT_FOLDER))
{
copy($file,$altname);
}