Browse Source

Some fixes

philippe_mingo 23 năm trước cách đây
mục cha
commit
d8b39a4e60
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);