mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-16 04:58:00 +00:00
added safeguard
This commit is contained in:
@@ -522,7 +522,7 @@ class PictshareModel extends Model
|
|||||||
if(defined('ALT_FOLDER') && ALT_FOLDER)
|
if(defined('ALT_FOLDER') && ALT_FOLDER)
|
||||||
{
|
{
|
||||||
$altname=ALT_FOLDER.DS.$hash;
|
$altname=ALT_FOLDER.DS.$hash;
|
||||||
if(!file_exists($altname))
|
if(!file_exists($altname) && is_dir(ALT_FOLDER))
|
||||||
{
|
{
|
||||||
copy($file,$altname);
|
copy($file,$altname);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user