Fixing bulk add bug, tag is set to "\" if no other tags are present
This commit is contained in:
parent
f57dc61cb7
commit
10e63a0666
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,8 @@ function add_dir(string $base): array
|
|||
$filename = basename($full_path);
|
||||
|
||||
$tags = path_to_tags($short_path);
|
||||
if ($tags[0] == "\\")
|
||||
$tags = "";
|
||||
$result = "$short_path (".str_replace(" ", ", ", $tags).")... ";
|
||||
try {
|
||||
add_image($full_path, $filename, $tags);
|
||||
|
|
Reference in a new issue