Fixing bulk add bug, tag is set to "\" if no other tags are present

This commit is contained in:
myname 2022-09-27 02:12:24 -05:00
parent f57dc61cb7
commit 10e63a0666

View File

@ -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);