From 7137241adf88aadcf12eab34b6405f293fc684be Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 21 Aug 2018 08:43:00 -0400 Subject: [PATCH] Fix recent item deduping --- CRM/Utils/Recent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/Recent.php b/CRM/Utils/Recent.php index f3baf09271..cdacc30bf5 100644 --- a/CRM/Utils/Recent.php +++ b/CRM/Utils/Recent.php @@ -116,7 +116,7 @@ class CRM_Utils_Recent { // make sure item is not already present in list for ($i = 0; $i < count(self::$_recent); $i++) { - if (self::$_recent[$i]['type'] === $type && self::$_recent[$i]['id'] === $id) { + if (self::$_recent[$i]['type'] === $type && self::$_recent[$i]['id'] == $id) { // delete item from array array_splice(self::$_recent, $i, 1); break; -- 2.25.1