Browse Source

Some fixes

philippe_mingo 23 years ago
parent
commit
d8b39a4e60
1 changed files with 1 additions and 1 deletions
  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);