From a75b2e3f62dc0627a7bb0801b9d9f244cbfa86b7 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 27 Aug 2018 23:25:04 +0200 Subject: [PATCH] added safeguard --- models/pictsharemodel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/pictsharemodel.php b/models/pictsharemodel.php index cc1ae61..ad7edc2 100644 --- a/models/pictsharemodel.php +++ b/models/pictsharemodel.php @@ -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); }