Some fixes
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 22 Aug 2002 13:49:39 +0000 (13:49 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 22 Aug 2002 13:49:39 +0000 (13:49 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3412 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/search.php

index 1232c4e14a99af0177576d2c5bb37e55df4cc02d..5c2a865ce21188f5f0ed3edc2a1c7c81a67088b1 100644 (file)
@@ -102,7 +102,7 @@ function forget_recent($forget_index, $username, $data_dir) {
     $attributes = get_recent( $username, $data_dir);
     reset($types);
     foreach ($types as $key) {
     $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);
         array_unshift($attributes[$key], '');
     }
     reset($types);