dev/core/#152 - Remove AdvMulti-Select custom field type
[civicrm-core.git] / CRM / Utils / Recent.php
index 75109d74edf976c8d272691c61b93f454fa933ce..f3baf09271927f078747cb57930c96411460b359 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.7                                                |
+ | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2017                                |
+ | Copyright CiviCRM LLC (c) 2004-2018                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -27,7 +27,7 @@
 
 /**
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2017
+ * @copyright CiviCRM LLC (c) 2004-2018
  */
 
 /**
@@ -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]['url'] == $url) {
+      if (self::$_recent[$i]['type'] === $type && self::$_recent[$i]['id'] === $id) {
         // delete item from array
         array_splice(self::$_recent, $i, 1);
         break;