Browse Source

Use array_merge instead of + for jdb genre autofill

xoru 5 years ago
parent
commit
6b35cd6e57
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      sections/ajax/autofill/jav.php

+ 1
- 1
sections/ajax/autofill/jav.php View File

@@ -209,7 +209,7 @@ if (!$debug && $Cache->get_value('jav_fill_json_'.$cn)) {
209 209
       foreach ($jdb->query("//a[@rel='tag' and starts-with(@href, 'https://www.javdatabase.com/genres/')]") as $tag) {
210 210
         if (array_key_exists($tag->nodeValue, $jdb_genre_map)) {
211 211
           if (is_array($jdb_genre_map[$tag->nodeValue])) {
212
-            $genres += $jdb_genre_map[$tag->nodeValue];
212
+            $genres = array_merge($genres, $jdb_genre_map[$tag->nodeValue]);
213 213
           } else {
214 214
             $genres[] = $jdb_genre_map[$tag->nodeValue];
215 215
           }

Loading…
Cancel
Save