浏览代码

Some fixes

philippe_mingo 23 年之前
父节点
当前提交
d8b39a4e60
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);