diff --git a/CRM/Utils/Recent.php b/CRM/Utils/Recent.php index 75109d74edf9..b89e775cc1e4 100644 --- a/CRM/Utils/Recent.php +++ b/CRM/Utils/Recent.php @@ -116,7 +116,7 @@ public static function add( // make sure item is not already present in list for ($i = 0; $i < count(self::$_recent); $i++) { - if (self::$_recent[$i]['url'] == $url) { + if (self::$_recent[$i]['type'] === $type && self::$_recent[$i]['id'] === $id) { // delete item from array array_splice(self::$_recent, $i, 1); break;