mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-15 20:48:00 +00:00
added safeguard
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user