projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #12180 from agileware/CIVICRM-832-5.0
[civicrm-core.git]
/
CRM
/
Utils
/
Recent.php
diff --git
a/CRM/Utils/Recent.php
b/CRM/Utils/Recent.php
index 75109d74edf976c8d272691c61b93f454fa933ce..f3baf09271927f078747cb57930c96411460b359 100644
(file)
--- a/
CRM/Utils/Recent.php
+++ b/
CRM/Utils/Recent.php
@@
-1,9
+1,9
@@
<?php
/*
+--------------------------------------------------------------------+
<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version
4.7
|
+ | CiviCRM version
5
|
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
7
|
+ | Copyright CiviCRM LLC (c) 2004-201
8
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-27,7
+27,7
@@
/**
* @package CRM
/**
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-201
7
+ * @copyright CiviCRM LLC (c) 2004-201
8
*/
/**
*/
/**
@@
-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++) {
// 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;
// delete item from array
array_splice(self::$_recent, $i, 1);
break;