philippe_mingo %!s(int64=23) %!d(string=hai) anos
pai
achega
d8b39a4e60
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
     reset($types);
     foreach ($types as $key) {
-        array_splice($attributes[$key], $forget_index, 1);
+        array_splice($attributes[$key], $forget_index - 1, 1);
         array_unshift($attributes[$key], '');
     }
     reset($types);