Browse Source

修复自动创建目录的问题

develop
tianya 6 months ago
parent
commit
04f16ea08a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/admin/inc/inc_archives_functions.php

+ 1
- 1
src/admin/inc/inc_archives_functions.php View File

@@ -99,7 +99,7 @@ function GetCurContent($body)
$img_array = array_unique($img_array[1]);
$imgUrl = $cfg_uploaddir.'/'.MyDate("ymd", time());
$imgPath = $cfg_basedir.$imgUrl;
if (!is_dir($imgPath.'/')) {
if (!is_dir($imgPath.'/') && count($img_array) > 0) {
MkdirAll($imgPath, $GLOBALS['cfg_dir_purview']);
}
$milliSecond = MyDate('His', time());


Loading…
Cancel
Save