philippe_mingo 23 éve
szülő
commit
d8b39a4e60
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/search.php

+ 1 - 1
src/search.php

@@ -102,7 +102,7 @@ function forget_recent($forget_index, $username, $data_dir) {
     $attributes = get_recent( $username, $data_dir);
     $attributes = get_recent( $username, $data_dir);
     reset($types);
     reset($types);
     foreach ($types as $key) {
     foreach ($types as $key) {
-        array_splice($attributes[$key], $forget_index, 1);
+        array_splice($attributes[$key], $forget_index - 1, 1);
         array_unshift($attributes[$key], '');
         array_unshift($attributes[$key], '');
     }
     }
     reset($types);
     reset($types);